/* Auth Pages Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
                 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
                 sans-serif;
    background: #f8f9fa;
    min-height: 100vh;
    color: #333;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

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

.auth-logo {
    height: 120px;
    margin-bottom: 1rem;
}

.auth-page-title {
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
}

.auth-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 400px;
}

.auth-header {
    padding: 2rem 2rem 1rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    text-align: center;
}

.auth-header h2 {
    margin: 0 0 0.5rem;
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
}

.user-info {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.auth-form {
    padding: 2rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 500;
    font-size: 0.9rem;
}

.password-input-container {
    position: relative;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 3rem 0.75rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #6c757d;
    padding: 0.25rem;
    border-radius: 4px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #495057;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
}

.form-help {
    display: block;
    margin-top: 0.25rem;
    color: #6c757d;
    font-size: 0.8rem;
    line-height: 1.4;
}

/* Password Feedback Styles */
.password-feedback {
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.strength-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.strength-label {
    font-weight: 500;
    color: #495057;
}

.strength-value {
    font-weight: 600;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    font-size: 0.8rem;
}

.strength-value.entropy-weak {
    color: #e74c3c;
    background: #fdf2f2;
}

.strength-value.entropy-fair {
    color: #f39c12;
    background: #fef9f2;
}

.strength-value.entropy-strong {
    color: #27ae60;
    background: #f0fdf4;
}

.entropy-value {
    color: #6c757d;
    font-size: 0.75rem;
}

.strength-bar {
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    transition: width 0.3s ease, background-color 0.3s ease;
    border-radius: 2px;
    width: 0%;
}

.strength-fill.entropy-weak {
    background: #e74c3c;
}

.strength-fill.entropy-fair {
    background: #f39c12;
}

.strength-fill.entropy-strong {
    background: #27ae60;
}

/* Password Match Feedback */
.password-match-feedback {
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.password-match-feedback.match {
    color: #27ae60;
    background: #f0fdf4;
    border: 1px solid #c3e6cb;
}

.password-match-feedback.mismatch {
    color: #e74c3c;
    background: #fdf2f2;
    border: 1px solid #f5c6cb;
}

.password-match-feedback svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Password Requirements Styles */
.password-requirements {
    padding: 1.5rem 2rem;
    border-top: 1px solid #ecf0f1;
}

.password-requirements h3 {
    margin: 0 0 1rem;
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 600;
}

.password-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.password-requirements li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.password-requirements li#character-count {
    color: #495057;
    font-weight: 500;
}

.password-requirements li.rule-met {
    color: #27ae60;
}

.password-requirements li.rule-met .requirement-icon {
    color: #27ae60;
}

.requirement-icon,
.info-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #6c757d;
}

.entropy-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.entropy-display strong {
    color: #2c3e50;
}

.entropy-requirement-text {
    color: #7f8c8d;
    font-size: 0.8rem;
}

/* Password Best Practices Styles */
.password-best-practices {
    padding: 1.5rem 2rem;
    border-top: 1px solid #ecf0f1;
    background-color: #f8f9fa;
}

.password-best-practices h3 {
    margin: 0 0 1rem;
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 600;
}

.password-best-practices ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.password-best-practices li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.25rem 0;
    color: #495057;
    font-size: 0.9rem;
    line-height: 1.4;
}

.password-best-practices li::before {
    content: "•";
    color: #007bff;
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-primary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.alert {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.alert-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.alert-success {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
}

.auth-links {
    text-align: center;
    padding: 1rem 2rem 2rem;
    border-top: 1px solid #f0f0f0;
}

.link {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.link:hover {
    color: #5a6fd8;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 480px) {
    .auth-container {
        padding: 1rem 0.5rem;
    }

    .auth-card {
        max-width: 100%;
        margin: 0;
        border-radius: 0;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .auth-form {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .auth-page-header {
        margin-bottom: 1rem;
    }

    .auth-page-title {
        font-size: 1.5rem;
    }
}