/* ==================================================
   LUXURY BRAND DESIGN - login.css
   Inspired by Chanel, Dior, Tom Ford
   ================================================== */

/* Main layout split screen */
.login-split {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    min-height: 100vh;
    background: #fdfcf9; /* Warm luxury off-white */
}

/* Image carousel container (Left on desktop) */
.login-carousel-container {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 5rem;
    color: #fff;
    min-height: 100vh;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

/* Overlay gradient for premium readability */
.login-carousel-container::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(20, 15, 10, 0.85) 100%);
    z-index: 3;
}

/* Carousel content & text overlays */
.carousel-text-overlay {
    position: relative;
    z-index: 4;
    max-width: 550px;
    margin-bottom: 2rem;
    animation: slideUpFade 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.carousel-brand-tag {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 600;
    color: var(--accent-primary, #F49A1F);
    margin-bottom: 1rem;
    display: block;
}

.carousel-phrase-title {
    font-family: var(--font-serif);
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #ffffff;
    font-weight: 400;
}

.carousel-phrase-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    font-weight: 300;
}

/* Right side - Login Form Container */
.login-form-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 5rem 4rem;
    background: #faf8f5;
    position: relative;
}

/* Glassmorphism Luxury Card */
.login-card {
    width: 100%;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(244, 154, 31, 0.12);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 50px rgba(20, 15, 10, 0.04), 
                0 4px 12px rgba(244, 154, 31, 0.02);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    animation: fadeIn 0.8s ease-out;
}

.login-card:hover {
    box-shadow: 0 30px 60px rgba(20, 15, 10, 0.06), 
                0 6px 20px rgba(244, 154, 31, 0.04);
}

/* Logo and Header Styling */
.login-logo-box {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo-text {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    letter-spacing: 5px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-heading, #000);
    display: inline-block;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted, #666);
    letter-spacing: 0.5px;
    font-weight: 400;
}

/* Input Fields & Icons styling */
.form-group {
    margin-bottom: 1.8rem;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #444;
    margin-bottom: 0.6rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i.prefix-icon {
    position: absolute;
    left: 1.2rem;
    color: #999;
    font-size: 1rem;
    transition: var(--transition);
}

.form-input {
    width: 100%;
    padding: 1.1rem 1.2rem 1.1rem 2.8rem;
    border: 1.5px solid #eae2d5;
    border-radius: 12px;
    background: #fdfdfd;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Password Eye Button */
.password-toggle {
    position: absolute;
    right: 1.2rem;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.password-toggle:hover {
    color: var(--text-dark);
}

/* Field Focus State */
.form-input:focus {
    border-color: var(--accent-primary, #F49A1F);
    background: #ffffff;
    outline: none;
    box-shadow: 0 10px 25px rgba(244, 154, 31, 0.08);
}

.form-input:focus + i.prefix-icon {
    color: var(--accent-primary, #F49A1F);
}

/* Interactive Validation Styling */
.form-input.is-valid {
    border-color: #2ec4b6;
    box-shadow: 0 0 8px rgba(46, 196, 182, 0.15);
}

.form-input.is-invalid {
    border-color: #e63946;
    animation: shake 0.4s ease-in-out;
}

.error-message {
    display: none;
    color: #e63946;
    font-size: 0.75rem;
    margin-top: 0.4rem;
    font-weight: 500;
}

.error-message.visible {
    display: block;
}

/* Checkbox & Forgot Password row */
.form-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 0.88rem;
}

.remember-me-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
}

.remember-me-checkbox {
    width: 17px;
    height: 17px;
    accent-color: var(--accent-primary, #F49A1F);
    border-radius: 4px;
    cursor: pointer;
}

.forgot-password-link {
    color: var(--accent-primary, #F49A1F);
    font-weight: 500;
    transition: color 0.3s;
}

.forgot-password-link:hover {
    color: var(--accent-hover, #e08915);
    text-decoration: underline;
}

/* Premium Login Button */
.btn-login {
    width: 100%;
    padding: 1.1rem;
    background: linear-gradient(135deg, #111111 0%, #2a2a2a 100%);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-login:active::before {
    width: 300px;
    height: 300px;
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
    background: linear-gradient(135deg, var(--accent-primary, #F49A1F) 0%, var(--accent-hover, #e08915) 100%);
}

.btn-login:disabled {
    background: #555 !important;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

/* Google OAuth Login Button */
.social-login {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1.5px solid #eae2d5;
    text-align: center;
}

.social-title {
    font-size: 0.75rem;
    color: #999;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
    padding: 1.1rem;
    border: 1px solid #eae2d5;
    background: #ffffff;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.google-btn img {
    width: 18px;
    height: 18px;
}

.google-btn:hover {
    background: #faf8f5;
    border-color: var(--accent-primary, #F49A1F);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(244, 154, 31, 0.08);
}

.security-note {
    font-size: 0.72rem;
    color: #999;
    margin-top: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Bottom small info cards */
.info-cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: 100%;
    max-width: 440px;
    margin-top: 2rem;
}

.info-mini-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(234, 226, 213, 0.7);
    border-radius: 12px;
    padding: 0.8rem 0.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.info-mini-card:hover {
    background: #ffffff;
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.info-mini-card i {
    color: var(--accent-primary);
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}

.info-mini-card span {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Benefits Section */
.benefits-container {
    width: 100%;
    max-width: 440px;
    margin-top: 2.5rem;
    background: rgba(244, 154, 31, 0.04);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px dashed rgba(244, 154, 31, 0.2);
}

.benefits-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.benefits-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 15px;
}

.benefits-item {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.benefits-item i {
    color: #2ec4b6;
    font-size: 0.8rem;
}

/* Toast alert messages */
.toast-container {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 11000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.luxury-toast {
    pointer-events: auto;
    background: #111;
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-left: 4px solid var(--accent-primary, #F49A1F);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 450px;
    animation: toastSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: all 0.4s ease;
}

.luxury-toast.toast-error {
    border-left-color: #e63946;
}

.luxury-toast.toast-success {
    border-left-color: #2ec4b6;
}

/* Keyframes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==================================================
   RESPONSIVE LAYOUT STYLING
   ================================================== */
@media (max-width: 992px) {
    .login-split {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    /* Convert left side image to an elegant top banner */
    .login-carousel-container {
        min-height: 250px;
        height: 250px;
        padding: 2.5rem 2rem;
        align-items: center;
        justify-content: center;
    }
    
    .carousel-text-overlay {
        text-align: center;
        margin-bottom: 0;
    }
    
    .carousel-phrase-title {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .carousel-phrase-desc {
        font-size: 0.95rem;
        display: none; /* Hide description on tablets/mobile to keep space tight */
    }
    
    .login-form-container {
        padding: 3rem 2rem;
        background: #faf8f5;
    }
    
    .login-card {
        box-shadow: 0 10px 30px rgba(0,0,0,0.03);
        border-radius: 16px;
        padding: 2.5rem 1.8rem;
    }
}

@media (max-width: 576px) {
    .login-carousel-container {
        height: 200px;
        min-height: 200px;
        padding: 1.5rem;
    }
    
    .carousel-phrase-title {
        font-size: 1.5rem;
    }
    
    .login-logo-text {
        font-size: 1.8rem;
    }
    
    .login-form-container {
        padding: 2rem 1rem;
    }
    
    .login-card {
        padding: 2rem 1.2rem;
        border-radius: 12px;
    }
    
    .info-cards-container {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .benefits-list {
        grid-template-columns: 1fr;
    }
}
