/* Auth Pages Styling */
body {
    background: #ffffff;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 480px;
}

.auth-card {
    background: transparent;
    border-radius: 16px;
    box-shadow: none;
    padding: 40px;
    border: 1px solid #e9ecef;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-title {
    color: #212529;
    font-weight: 700;
    font-size: 28px;
    margin-bottom: 8px;
}

.auth-subtitle {
    color: #6c757d;
    font-size: 16px;
    margin-bottom: 0;
}

.auth-form {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    color: #495057;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: transparent;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    background-color: transparent;
}

.form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: transparent;
}

.form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    background-color: transparent;
}

.password-input {
    position: relative;
}

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

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

.password-strength {
    margin-top: 8px;
    font-size: 12px;
}

.strength-weak {
    color: #dc3545;
}

.strength-medium {
    color: #ffc107;
}

.strength-strong {
    color: #28a745;
}

.form-check-label {
    color: #495057;
    font-size: 14px;
}

.auth-btn {
    width: 100%;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary.auth-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
}

.btn-primary.auth-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.25);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.btn-outline-primary.auth-btn {
    color: #667eea;
    border-color: #667eea;
    background: transparent;
}

.btn-outline-primary.auth-btn:hover {
    background: #667eea;
    border-color: #667eea;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.btn-google.auth-btn {
    background: transparent;
    border: 2px solid #dadce0;
    color: #3c4043;
    margin-bottom: 10px;
}

.btn-google.auth-btn:hover {
    background: #f8f9fa;
    border-color: #dadce0;
    color: #3c4043;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 20px 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e9ecef;
}

.divider-text {
    background: #ffffff;
    padding: 0 15px;
    color: #6c757d;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.auth-footer {
    text-align: center;
}

.auth-divider {
    margin: 20px 0;
    color: #6c757d;
    font-size: 14px;
}

.auth-links {
    margin-bottom: 20px;
}

.auth-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s ease;
}

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

.btn-link.auth-link {
    border: none;
    background: none;
    padding: 0;
    margin-top: 10px;
}

.auth-step {
    animation: fadeIn 0.3s ease-in-out;
}

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

.success-icon i {
    font-size: 64px;
}

/* Form validation styles */
.is-invalid {
    border-color: #dc3545;
}

.is-valid {
    border-color: #28a745;
}

.invalid-feedback {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
}

.valid-feedback {
    color: #28a745;
    font-size: 12px;
    margin-top: 4px;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .auth-card {
        padding: 30px 20px;
        margin: 10px;
    }

    .auth-title {
        font-size: 24px;
    }

    .form-control,
    .form-select {
        font-size: 14px;
    }
}

/* Loading state */
.btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn.loading::after {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Logo sizing for auth pages */
.auth-brand img,
.auth-logo {
    height: 64px;
    display: block;
    margin: 0 auto;
    border-radius: 5px;
}
