/* 
    Jewel Nails - Hybrid Login Page Styles
    Desktop: Luxury Glassmorphism
    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 */
.login-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;
}

.login-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;
}

.login-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 450px;
    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); }
}

.login-top-header {
    display: none;
}

.login-body {
    padding: 50px 40px;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--noir-black);
    letter-spacing: 1px;
}

.login-form .form-group {
    margin-bottom: 25px;
}

.login-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;
}

.login-form input {
    width: 100%;
    padding: 14px 18px 14px 55px; /* Default: space for left icon */
    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;
}

.login-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 field needs right padding for eye icon */
.login-form input[type="password"] {
    padding-right: 45px;
}

.login-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.1rem;
    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;
}

/* Left Icon Position */
.input-wrapper i:not(.fa-eye):not(.fa-eye-slash), 
.input-wrapper .left-icon {
    left: 18px;
}

/* Right Icon (Toggle) Position */
.toggle-password {
    right: 15px;
}

/* Extra Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 0.85rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 600;
}

.remember-me input {
    margin: 0;
    width: 16px;
    height: 16px;
}

.forgot-password {
    color: var(--primary-gold-dark);
    text-decoration: none;
    font-weight: 600;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* Button */
.btn-login {
    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-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.4) !important;
    filter: brightness(1.1);
}

.register-link {
    text-align: center;
    margin-top: 25px;
    font-size: 0.95rem;
}

.register-link a {
    color: var(--primary-gold-dark);
    font-weight: 700;
    text-decoration: none;
}

/* Hide Social on Desktop */
.social-login-section {
    display: none;
}

/* MOBILE VIEW */
@media (max-width: 580px) {
    .login-section {
        background: #EBF1FF;
        padding: 0;
    }
    
    .login-section::before {
        display: none;
    }
    
    .login-container {
        max-width: 100%;
        border-radius: 0;
        background: #fff;
        backdrop-filter: none;
        box-shadow: none;
    }
    
    .login-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-register {
        display: inline-block;
        padding: 8px 35px;
        border: 1.5px solid #fff; /* Added white border */
        border-radius: 12px;
        color: #fff;
        text-decoration: none;
        font-weight: 600;
        margin-top: 15px;
        transition: all 0.3s ease;
    }
    
    .login-body {
        padding: 30px 20px;
    }
    
    .login-header h1 {
        font-family: 'Plus Jakarta Sans', sans-serif;
        font-size: 2.2rem;
    }
    
    .login-form input {
        background: var(--input-bg);
        border: none;
    }

    .btn-login {
        background: linear-gradient(135deg, var(--primary-blue), #5A76CA) !important;
        box-shadow: 0 8px 20px rgba(122, 150, 234, 0.3) !important;
        padding: 13px;
        border: 1.5px solid #fff !important; 
        color: #fff !important;
        font-weight: 600;
    }
    
    .forgot-password, .register-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;
    }
}
