/* Custom CSS for Legacy International Sign Up Page */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

.min-vh-100 {
    min-height: 100vh;
}

/* Logo Styling */
.logo {
    max-width: 200px;
    height: auto;
}

.logo-mobile {
    max-width: 120px;
    height: auto;
}

/* Sign Up Form Container */
.signup-form-container {
    width: 100%;
    max-width: 500px;
    padding: 20px;
}

/* Card Styling */
.card {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.card-title {
    color: var(--primary-color);
    font-weight: 700;
}

/* Form Styling */
.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
}

/* Numeric input styling */
input[inputmode="numeric"] {
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

.form-control, .form-select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 12px 15px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.form-control.is-invalid {
    border-color: var(--danger-color);
}

.form-control.is-valid {
    border-color: var(--success-color);
}

/* Input Group Styling */
.input-group-text {
    background-color: var(--light-color);
    border: 2px solid #e9ecef;
    border-right: none;
    font-weight: 600;
    color: var(--dark-color);
}

.input-group .form-control {
    border-left: none;
}

/* Checkbox Styling */
.form-check-input {
    width: 20px;
    height: 20px;
    margin-top: 0.25rem;
}

.form-check-label {
    font-weight: 500;
    margin-left: 8px;
}

/* Button Styling */
.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), #2980b9);
    border: none;
    border-radius: 8px;
    padding: 15px 30px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2980b9, var(--secondary-color));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.btn-primary:disabled {
    background: #6c757d;
    transform: none;
    box-shadow: none;
}

/* Spinner Styling */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    margin-right: 8px;
}

/* Alert Styling */
.alert {
    border-radius: 8px;
    border: none;
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* reCAPTCHA Styling */
.g-recaptcha {
    display: flex;
    justify-content: center;
    margin: 15px 0;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .signup-form-container {
        padding: 10px;
    }
    
    .card-body {
        padding: 20px !important;
    }
    
    .logo-mobile {
        max-width: 100px;
    }
    
    .btn-primary {
        padding: 12px 25px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .container-fluid {
        padding: 0;
    }
    
    .signup-form-container {
        padding: 5px;
    }
    
    .card-body {
        padding: 15px !important;
    }
    
    .form-control, .form-select {
        padding: 10px 12px;
        font-size: 14px;
    }
}

/* Animation for form validation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}

/* Focus states for accessibility */
.form-control:focus,
.form-select:focus,
.form-check-input:focus,
.btn:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .form-control, .form-select {
        border-width: 3px;
    }
    
    .btn-primary {
        border: 2px solid var(--dark-color);
    }
}

/* Success Section Styles */
.success-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.1);
}

.success-icon {
    margin-bottom: 1rem;
}

.success-icon i {
    color: var(--success-color);
    animation: successPulse 2s ease-in-out infinite;
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.user-details {
    background: #f8f9fa;
    border: 1px solid #e3e6ea;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.user-details h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.user-details p {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.user-details strong {
    color: var(--dark-color);
    font-weight: 600;
}

#successUserId {
    font-size: 1rem;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-weight: 600;
    letter-spacing: 1px;
}

.alert-info {
    background-color: rgba(var(--info-rgb), 0.1);
    border: 1px solid rgba(var(--info-rgb), 0.2);
    color: var(--info-color);
}

.btn-primary.btn-lg {
    font-size: 1.1rem;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary.btn-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.3);
}
