/* =====================================================
   LOGIN PAGE - Professional Blue Design
   ✅ FIXED: Country code dropdown visibility
   ===================================================== */

@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.register-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 30%, #3b82f6 60%, #60a5fa 100%);
    background-size: 200% 200%;
    animation: gradient-animation 12s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    position: relative;
    overflow: hidden;
}

/* Glass Card */
.register-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    max-width: 460px;
    width: 100%;
    padding: 48px;
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header with Lock Icon */
.register-header {
    text-align: center;
    margin-bottom: 32px;
}

.register-header::before {
    content: '🔐';
    display: block;
    font-size: 48px;
    margin-bottom: 16px;
}

.register-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 8px;
}

.register-header p {
    font-size: 15px;
    color: #6b7280;
    font-weight: 500;
}

/* Form */
.register-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

/* =====================================================
   PHONE INPUT WITH COUNTRY CODE
   ✅ FIXED: Ensure country code dropdown is visible
   ===================================================== */

.phone-input {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.country-code-select {
    min-width: 120px;
    max-width: 130px;
    padding: 14px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.country-code-select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.country-code-select:hover {
    border-color: #3b82f6;
}

.phone-number-input {
    flex: 1;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
}

.phone-number-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* =====================================================
   ALERTS
   ===================================================== */

.alert {
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
}

.alert-error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 2px solid #ef4444;
    color: #991b1b;
}

.alert-success {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #10b981;
    color: #065f46;
}

/* =====================================================
   BUTTONS
   ===================================================== */

.btn {
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.btn-primary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* =====================================================
   FORGOT PASSWORD LINK
   ===================================================== */

.forgot-password-link {
    text-align: right;
    margin-top: -8px;
    margin-bottom: 16px;
}

.link-forgot {
    color: #2563eb;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.link-forgot:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* =====================================================
   FORM FOOTER
   ===================================================== */

.form-footer {
    text-align: center;
    font-size: 14px;
    color: #6b7280;
    margin-top: 8px;
}

.link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 700;
}

.link:hover {
    text-decoration: underline;
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */

@media (max-width: 480px) {
    .register-container {
        padding: 24px 16px;
    }

    .register-card {
        padding: 32px 24px;
    }

    .register-header h2 {
        font-size: 28px;
    }
    
    .phone-input {
        flex-direction: column;
        gap: 12px;
    }
    
    .country-code-select {
        min-width: 100%;
        max-width: 100%;
    }
    
    .phone-number-input {
        width: 100%;
    }
}

/* =====================================================
   ACCESSIBILITY
   ===================================================== */

*:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}