/* Non-critical styles for registration page - loaded asynchronously */

/* Input wrapper and password toggle */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-toggle {
    position: absolute;
    right: 16px;
    cursor: pointer;
    color: #6B7280;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #B48858;
}

/* Button hover effects */
.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(180, 136, 88, 0.4);
    background: linear-gradient(135deg, #B48858 0%, #E4C39D 100%);
    color: #2D1F16;
}

.btn-login-link:hover {
    background: #B48858;
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* Password strength indicator */
.password-strength .progress {
    height: 6px;
    border-radius: 3px;
    background: #E5E7EB;
}

.password-strength .progress-bar {
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Form check styling */
.form-check-label a:hover {
    text-decoration: underline;
}

/* Phone input internationalization styles */
.iti {
    width: 100%;
    height: auto;
    position: relative;
}

.iti__flag-container {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 3;
}

.iti__selected-flag {
    height: 100%;
    padding: 0 15px 0 8px;
    display: flex;
    align-items: center;
    background: transparent;
    min-width: 90px;
}

.iti__selected-dial-code {
    color: #212529;
    font-size: 1rem;
    margin-left: 4px;
    margin-right: 4px;
}

.iti input[type="tel"] {
    padding-left: 105px !important;
}

/* Status message styling */
.alert {
    border-radius: 12px;
    border: none;
    font-weight: 500;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    color: #166534;
    border-left: 4px solid #22C55E;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #991B1B;
    border-left: 4px solid #EF4444;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #92400E;
    border-left: 4px solid #F59E0B;
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    color: #1E40AF;
    border-left: 4px solid #3B82F6;
}

/* Additional responsive styles */
@media (max-width: 480px) {
    .register-card {
        padding: 1.5rem 1rem;
    }

    .welcome-title {
        font-size: 1.5rem;
    }

    .custom-input {
        padding: 14px 16px;
    }

    .form-section {
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
    }
}

/* Loading states and animations */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #B48858;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Focus states for accessibility */
.custom-input:focus-visible {
    outline: 2px solid #B48858;
    outline-offset: 2px;
}

.btn-register:focus-visible,
.btn-login-link:focus-visible {
    outline: 2px solid #B48858;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .custom-input {
        border-width: 3px;
    }
    
    .btn-register,
    .btn-login-link {
        border-width: 3px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .register-card {
        animation: none;
    }
    
    .btn-register:hover,
    .btn-login-link:hover {
        transform: none;
    }
    
    .custom-input,
    .btn-register,
    .btn-login-link {
        transition: none;
    }
}
