/* ===== AUTH PAGES: LOGIN & SIGNUP ===== */

/* Main container under the navbar */
.auth-container {
    /* leave room below the header/logo */
    min-height: calc(100vh - 80px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: linear-gradient(135deg, #f0f8f5 0%, #ffffff 100%);
    padding: 3.5rem 1.5rem 2rem;
}

/* Extra spacing for SIGNUP page only */
.signup-container {
    padding-top: 4.5rem;
}

/* Auth card / box */
.auth-box {
    background: #ffffff;
    width: 100%;
    max-width: 440px;
    margin-top: 0.5rem;
    padding: 2.5rem 2.2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 107, 63, 0.18);
    animation: slideInAuth 0.25s ease-out;
}

@keyframes slideInAuth {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-box h2 {
    color: #006B3F;
    font-size: 1.9rem;
    margin-bottom: 0.4rem;
    text-align: center;
}

.auth-box > p {
    color: #6b7280;
    text-align: center;
    margin-bottom: 1.7rem;
    font-size: 0.95rem;
}

/* Form layout */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.form-group label {
    color: #111827;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input {
    padding: 0.8rem;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: 0.2s;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: #006B3F;
    box-shadow: 0 0 0 1px rgba(0, 107, 63, 0.25);
}

.form-group input::placeholder {
    color: #9ca3af;
}

/* Checkbox (terms on signup) */
.checkbox-group {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    margin-top: 0.2rem;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 0.1rem;
    cursor: pointer;
}

.checkbox-group label {
    font-size: 0.85rem;
    color: #4b5563;
    font-weight: 400;
    margin: 0;
    cursor: pointer;
}

/* Forgot password link */
.forgot-password {
    text-align: right;
    margin-top: -0.4rem;
}

.forgot-password a {
    color: #006B3F;
    text-decoration: none;
    font-size: 0.85rem;
    transition: 0.2s;
}

.forgot-password a:hover {
    text-decoration: underline;
    color: #FCD116;
}

/* Main submit button */
.btn-submit {
    background: linear-gradient(135deg, #006B3F 0%, #1a472a 100%);
    color: white;
    padding: 0.95rem;
    border: none;
    border-radius: 6px;
    font-size: 0.98rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    margin-top: 0.8rem;
}

.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 107, 63, 0.35);
}

.btn-submit:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Link under the form */
.auth-link {
    text-align: center;
    color: #4b5563;
    font-size: 0.9rem;
    margin-top: 1.4rem;
}

.auth-link a {
    color: #006B3F;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}

.auth-link a:hover {
    color: #FCD116;
    text-decoration: underline;
}

/* ===== ERROR & SUCCESS MESSAGES ===== */
.message {
    padding: 1rem 1.2rem;
    border-radius: 8px;
    margin: 0.75rem 0 1.5rem;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
}

/* Very strong red error */
.message.error {
    background: #fee2e2;               /* light red background */
    color: #7f1d1d;                    /* dark red text */
    border: 1px solid #fecaca;
    box-shadow: 0 4px 10px rgba(220,38,38,0.25);
}

/* Clear green success */
.message.success {
    background: #dcfce7;               /* light green background */
    color: #166534;                    /* dark green text */
    border: 1px solid #bbf7d0;
    box-shadow: 0 4px 10px rgba(22,101,52,0.18);
}

/* ===== RESPONSIVE FOR SMALL SCREENS ===== */
@media (max-width: 640px) {
    .auth-container {
        padding: 3rem 1.2rem 1.8rem;
    }

    .signup-container {
        padding-top: 4rem;
    }

    .auth-box {
        padding: 2rem 1.5rem;
        max-width: 100%;
        margin-top: 0.2rem;
    }

    .auth-box h2 {
        font-size: 1.6rem;
    }

    .auth-box > p {
        font-size: 0.9rem;
    }

    .message {
        font-size: 1rem;
        padding: 1rem;
        margin: 0.8rem 0 1.4rem;
    }
}