/* Auth Pages Styling */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #217346 0%, #185c37 50%, #0e3c24 100%);
    padding: 2rem;
}

.auth-box {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 3rem;
    max-width: 500px;
    width: 100%;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header .logo {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.auth-header .tagline {
    color: var(--text-light);
    font-size: 0.95rem;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form h2 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group input:invalid:not(:placeholder-shown) {
    border-color: #dc2626;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-password:hover {
    text-decoration: underline;
}

.btn-full {
    width: 100%;
    margin-top: 1rem;
}

.form-error {
    color: #dc2626;
    font-size: 0.9rem;
    margin-top: 1rem;
    padding: 0.75rem;
    background: #fee;
    border-radius: 6px;
    display: none;
}

.form-error.show {
    display: block;
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-light);
}

.auth-switch a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 0.75rem;
}

.strength-bar {
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.strength-bar-fill {
    height: 100%;
    width: 0%;
    transition: width 0.3s, background-color 0.3s;
    background: var(--border-color);
}

.strength-bar-fill.weak {
    width: 33%;
    background: #dc2626;
}

.strength-bar-fill.medium {
    width: 66%;
    background: #f59e0b;
}

.strength-bar-fill.strong {
    width: 100%;
    background: #10b981;
}

.strength-text {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
}

.strength-text.weak {
    color: #dc2626;
}

.strength-text.medium {
    color: #f59e0b;
}

.strength-text.strong {
    color: #10b981;
}

/* Password Requirements */
.password-requirements {
    list-style: none;
    margin-top: 1rem;
    padding: 0;
}

.requirement {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.requirement-icon {
    color: #dc2626;
    font-weight: bold;
    width: 18px;
}

.requirement.met {
    color: #10b981;
}

.requirement.met .requirement-icon {
    color: #10b981;
    content: "✓";
}

.requirement.met .requirement-icon::before {
    content: "✓";
}

.requirement:not(.met) .requirement-icon::before {
    content: "✗";
}

/* Password Match Indicator */
.password-match {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    border-radius: 6px;
    display: none;
}

.password-match.match {
    display: block;
    color: #10b981;
    background: #d1fae5;
}

.password-match.no-match {
    display: block;
    color: #dc2626;
    background: #fee;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-box {
        padding: 2rem;
    }
    
    .auth-header .logo {
        font-size: 1.75rem;
    }
}
