* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

.login-body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f7f7f7;
    padding: 1rem;
}
.text-danger{
    color: #db2828;
}

.login-container {
    width: 100%;
    max-width: 450px;
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
}

/* Apply shadow only on desktop */
@media (min-width: 768px) {
    .login-container {
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
}

/* Mobile-specific styles */
@media (max-width: 767px) {
    .login-body {
        padding: 0;
        background-color: #fff;
    }

    .login-container {
        border-radius: 0;
        padding: 1.5rem;
    }

    .logo-container img {
        max-width: 60%;
    }

    h2 {
        font-size: 1.25rem;
        margin-bottom: 1.25rem;
    }
}

.logo-container {
    text-align: center;
    margin-bottom: 1.5rem;
}

.logo-container img {
    max-width: 70%;
    height: auto;
}

h2 {
    color: #333;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.input-group {
    margin-bottom: 1.25rem;
}

.input-group label {
    display: block;
    font-size: 0.875rem;
    color: #4a5568;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.input-group input:not([type="checkbox"]) {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #288A0F;
    box-shadow: 0 0 0 3px rgba(40, 138, 15, 0.1);
}

/* Phone input responsive styles */
.iti {
    width: 100%;
}

.iti__flag-container:hover {
    cursor: pointer;
}

/* Adjust phone input on mobile */
@media (max-width: 767px) {
    .iti__country-list {
        max-width: 90vw;
    }
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Adjust remember-forgot on mobile */
@media (max-width: 360px) {
    .remember-forgot {
        flex-direction: column;
        align-items: flex-start;
    }
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group label {
    font-size: 0.875rem;
    color: #4a5568;
}

.forgot-link {
    color: #288A0F;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: #1a5f0a;
}

.button {
    width: 100%;
    background-color: #288A0F;
    color: white;
    padding: 0.75rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #1a5f0a;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.divider span {
    padding: 0 1rem;
    color: #718096;
    font-size: 0.875rem;
}

.social-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background-color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Adjust social buttons on mobile */
@media (max-width: 767px) {
    .social-button {
        padding: 0.5rem;
    }

    .social-button img {
        width: 20px;
        height: 20px;
    }
}

.social-button:hover {
    background-color: #f7fafc;
}

.social-button img {
    width: 24px;
    height: 24px;
}

.signup-link {
    text-align: center;
    font-size: 0.875rem;
    color: #4a5568;
}

.signup-link a {
    color: #288A0F;
    text-decoration: none;
}

.signup-link a:hover {
    text-decoration: underline;
}

.password-group {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #718096;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Touch-friendly adjustments for mobile */
@media (max-width: 767px) {
    .password-toggle {
        padding: 0.5rem;
        right: 0.5rem;
    }

    input:not([type="checkbox"]) {
        font-size: 16px !important; /* Prevents zoom on iOS */
    }

    .button {
        padding: 1rem 0.75rem; /* Larger touch target */
    }
}
