/* css/auth.css */
:root {
    --primary-dark: #1a1a2e;
    --primary-hover: #16213e;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.min-vh-100 {
    min-height: 100vh;
}

.card {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    overflow: hidden;
}

.card-header {
    background: var(--primary-dark) !important;
    border-bottom: none;
}

.card-header h4 {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.form-control {
    border: 1px solid #e0e0e0;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--primary-dark);
    box-shadow: 0 0 0 0.2rem rgba(26, 26, 46, 0.25);
}

.input-group-text {
    background: white;
    border: 1px solid #e0e0e0;
    border-right: none;
    color: var(--primary-dark);
}

.input-group .form-control {
    border-left: none;
}

.input-group .form-control:focus {
    border-left: none;
}

.btn-dark {
    background: var(--primary-dark);
    border: none;
    padding: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.btn-dark:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-dark:active {
    transform: translateY(0);
}

.btn-outline-secondary {
    border-color: #e0e0e0;
}

.btn-outline-secondary:hover {
    background: #f8f9fa;
    border-color: #e0e0e0;
    color: var(--primary-dark);
}

.form-check-input:checked {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Password strength indicator */
.password-strength {
    font-size: 0.875rem;
}

.progress {
    background-color: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    transition: width 0.3s ease;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 9999;
    min-width: 300px;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-left: 4px solid var(--success);
}

.notification-error {
    border-left: 4px solid var(--danger);
}

.notification i {
    font-size: 1.2rem;
}

.notification-success i {
    color: var(--success);
}

.notification-error i {
    color: var(--danger);
}

/* OTP Input styling */
.otp-input {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    margin: 0 5px;
}

.otp-input:focus {
    border-color: var(--primary-dark);
    outline: none;
    box-shadow: 0 0 0 2px rgba(26, 26, 46, 0.25);
}

/* Responsive */
@media (max-width: 768px) {
    .card {
        margin: 1rem;
    }
    
    .notification {
        left: 20px;
        right: 20px;
        min-width: auto;
    }
    
    .otp-input {
        width: 40px;
        height: 50px;
        font-size: 1.25rem;
    }
}

/* Loading spinner */
.spinner-border {
    width: 1.2rem;
    height: 1.2rem;
    border-width: 0.2em;
}

/* Form validation styles */
.form-control.is-valid {
    border-color: var(--success);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-invalid {
    border-color: var(--danger);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.invalid-feedback {
    display: block;
    color: var(--danger);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Progress Steps */
.steps {
    padding: 0 10px;
}

.step {
    text-align: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.step-icon {
    width: 40px;
    height: 40px;
    background-color: #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    color: #6c757d;
    transition: all 0.3s;
}

.step.active .step-icon {
    background-color: var(--primary-dark);
    color: white;
}

.step.completed .step-icon {
    background-color: #28a745;
    color: white;
}

.step-text {
    font-size: 0.75rem;
    color: #6c757d;
}

.step.active .step-text {
    color: var(--primary-dark);
    font-weight: 600;
}

.step-line {
    flex: 1;
    height: 2px;
    background-color: #e9ecef;
    margin: 20px 10px 0;
}

.step-line.active {
    background-color: var(--primary-dark);
}

/* OTP Input */
.otp-input-container {
    margin: 20px 0;
}

.otp-input {
    width: 50px !important;
    height: 60px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 0;
}

.otp-input:focus {
    border-color: var(--primary-dark);
    outline: none;
    box-shadow: 0 0 0 2px rgba(26, 26, 46, 0.25);
}

/* Password Requirements */
.password-requirements {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
}

.requirement {
    color: #6c757d;
    font-size: 0.85rem;
    margin-bottom: 5px;
    transition: all 0.3s;
}

.requirement.met {
    color: #28a745;
}

.requirement:last-child {
    margin-bottom: 0;
}

/* Responsive OTP */
@media (max-width: 576px) {
    .otp-input {
        width: 40px !important;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .step-text {
        font-size: 0.7rem;
    }
    
    .step-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}