/* 
    Jewel Nails - Hybrid Register Page Styles
    Desktop: Luxury Glassmorphism with Background Image
    Mobile: Modern App Design
*/

:root {
    --primary-blue: #7A96EA;
    --primary-gold: #D4AF37;
    --primary-gold-dark: #B8860B;
    --noir-black: #1A1A1A;
    --silk-white: #F9F9F9;
    --input-bg: #F0F2F5;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* DESKTOP STYLES */
.register-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../images/register-bg.png') no-repeat center center;
    background-size: cover;
    padding: 80px 20px;
    position: relative;
}

.register-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(2px);
    z-index: 1;
}

.register-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 550px;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.register-top-header {
    display: none;
}

.register-body {
    padding: 50px;
}

.register-header {
    text-align: center;
    margin-bottom: 40px;
}

.register-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--noir-black);
    letter-spacing: 1px;
}

/* Form Layout */
.register-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.register-form .form-group {
    margin-bottom: 25px;
}

.register-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--noir-black);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.register-form input {
    width: 100%;
    padding: 14px 18px 14px 55px; /* Space for lead icons */
    border: 1.5px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    color: var(--noir-black);
    transition: all 0.3s ease;
}

.register-form input.invalid-input {
    border-color: #e74c3c !important;
    background: rgba(231, 76, 60, 0.05) !important;
}

.error-message {
    color: #e74c3c;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 5px;
    display: none;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Password fields need space for eye icon on right */
.input-wrapper input[type="password"] {
    padding-right: 45px;
}

.register-form input:focus {
    background: #fff;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
    outline: none;
}

/* Shared Icon Styles */
.input-wrapper i, .toggle-password {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 1.15rem;
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    z-index: 10;
    box-sizing: border-box;
    appearance: none;
}

/* Lead Icons (Left) */
.input-wrapper i.left-icon, 
.input-wrapper i:first-child:not(.fa-eye):not(.fa-eye-slash) {
    left: 18px;
}

/* Toggle Buttons (Right) */
.toggle-password {
    right: 15px;
}

/* Button */
.btn-register {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-gold-dark)) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2) !important;
}

.btn-register:hover {
    background: var(--primary-gold);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.login-link {
    text-align: center;
    margin-top: 25px;
    font-size: 0.95rem;
    color: var(--noir-black);
}

.login-link a {
    color: var(--primary-gold-dark);
    font-weight: 700;
    text-decoration: none;
}

.login-link a:hover {
    text-decoration: underline;
}

/* Social Login Section (Desktop Hidden) */
.social-login-section {
    display: none;
}

/* MOBILE VIEW */
@media (max-width: 580px) {
    .register-section {
        background: #EBF1FF;
        padding: 0;
    }
    
    .register-section::before {
        display: none;
    }
    
    .register-container {
        max-width: 100%;
        border-radius: 0;
        background: #fff;
        backdrop-filter: none;
        box-shadow: none;
    }
    
    .register-top-header {
        display: block;
        background: var(--primary-blue);
        padding: 40px 20px 60px;
        text-align: center;
        color: #fff;
        border-radius: 0 0 60px 60px;
    }

    .btn-top-login {
        display: inline-block;
        padding: 8px 35px;
        border: 1.5px solid #fff;
        border-radius: 12px;
        color: #fff;
        text-decoration: none;
        font-weight: 600;
        margin-top: 15px;
        transition: all 0.3s ease;
    }
    
    .register-body {
        padding: 30px 20px;
    }
    
    .register-header h1 {
        font-family: 'Plus Jakarta Sans', sans-serif;
        font-size: 2rem;
    }
    
    .register-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .register-form input {
        background: var(--input-bg);
        border: none;
    }

    .btn-register {
        background: var(--primary-blue);
        box-shadow: 0 8px 20px rgba(122, 150, 234, 0.3);
        padding: 13px;
        border: 1.5px solid #fff; /* Added white border as requested */
    }

    .login-link a {
        color: var(--primary-blue);
    }
    
    .social-login-section {
        display: block;
        text-align: center;
        margin-top: 30px;
    }
    
    .social-icons {
        display: flex;
        justify-content: center;
        gap: 15px;
    }
    
    .social-icon {
        width: 45px; height: 45px;
        display: flex; align-items: center; justify-content: center;
        border: 1px solid #E0E4EC;
        border-radius: 12px;
        color: #333;
        font-size: 1.2rem;
    }
}

/* Shared Gender Radios */
.gender-radio-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.radio-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    font-weight: 500;
}

.radio-container input {
    position: absolute;
    opacity: 0;
}

.radio-mark {
    position: absolute;
    left: 0;
    height: 20px;
    width: 20px;
    background: #fff;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.radio-container input:checked ~ .radio-mark {
    background: var(--primary-gold);
    border-color: var(--primary-gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

@media (max-width: 580px) {
    .radio-container input:checked ~ .radio-mark {
        background: var(--primary-blue);
        border-color: var(--primary-blue);
        box-shadow: 0 0 10px rgba(122, 150, 234, 0.4);
    }
}

/* Premium Unified Phone Group Styles */
.premium-phone-group {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.5);
    border: 1.5px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
    width: 100%;
}

.premium-phone-group:focus-within {
    border-color: var(--primary-gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
    background: rgba(255, 255, 255, 0.8);
}

.country-selector {
    position: relative;
    padding-left: 15px;
    display: flex;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
}

.country-selector select {
    appearance: none;
    background: transparent;
    border: none;
    padding: 14px 25px 14px 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--noir-black);
    cursor: pointer;
    outline: none;
    z-index: 2;
}

.select-arrow {
    position: absolute;
    right: 8px;
    font-size: 0.7rem;
    color: #666;
    pointer-events: none;
}

.input-divider {
    width: 1.5px;
    height: 25px;
    background: rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.phone-input-field {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 12px;
    min-width: 0; /* Important for flex children truncation */
}

.field-icon {
    font-size: 0.9rem;
    color: #666;
    margin-right: 10px;
    flex-shrink: 0;
}

.phone-input-field input {
    width: 100%;
    border: none !important;
    background: transparent !important;
    padding: 14px 0 !important;
    box-shadow: none !important;
    outline: none !important;
    font-size: 1rem;
    color: var(--noir-black);
    display: block;
}

@media (max-width: 480px) {
    .premium-phone-group {
        flex-direction: column;
        align-items: stretch;
    }
    .input-divider {
        width: 100%;
        height: 1.5px;
    }
    .country-selector {
        padding-right: 15px;
    }
    .country-selector select {
        padding: 12px 0;
        width: 100%;
    }
}
