/* ═══════════════════════════════════════════════════════════
   LOGIN LUXURY BEAUTY · Coerente con index.php
   File: css/login.css
═══════════════════════════════════════════════════════════ */

:root {
    --bty-gold: #c9a961;
    --bty-gold-deep: #b5952f;
    --bty-gold-light: #e8d5a0;
    --bty-black: #0a0a0a;
    --bty-rose: #e91e63;
    --bty-cream: #faf8f5;
    --bty-stone: #f4f1ec;
    --bty-rose-soft: #fce4ec;
    --bty-text: #1a1a1a;
    --bty-text-muted: #6b6b6b;
    --bty-border: #ebe6dd;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: var(--bty-cream);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--bty-text);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ═══ LAYOUT GENERALE ═══ */
.lux-login {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
}

@media (max-width: 991.98px) {
    .lux-login {
        grid-template-columns: 1fr;
    }
}

/* ═══ LATO SINISTRO · MOSAICO BEAUTY ═══ */
.lux-visual {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 56px 64px;
    color: #fff;
}

@media (max-width: 991.98px) {
    .lux-visual {
        min-height: 280px;
        padding: 40px 28px;
    }
}

.lux-visual-mosaic {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0;
    z-index: 0;
}

.lux-visual-tile {
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: transform 6s ease;
}

.lux-visual:hover .lux-visual-tile {
    transform: scale(1.08);
}

.lux-visual-tile:nth-child(1) { background-image: url('/images/hero/mosaico1index.webp'); }
.lux-visual-tile:nth-child(2) { background-image: url('/images/hero/mosaico4index.webp'); }
.lux-visual-tile:nth-child(3) { background-image: url('/images/hero/mosaico3index.webp'); }
.lux-visual-tile:nth-child(4) { background-image: url('/images/hero/mosaico2index.webp'); }

.lux-visual-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(10,10,10,0.88) 0%, rgba(10,10,10,0.72) 50%, rgba(10,10,10,0.85) 100%),
        radial-gradient(ellipse at top right, rgba(201,169,97,0.18) 0%, transparent 60%);
    z-index: 1;
}

.lux-brand {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: #fff;
}

.lux-brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(201,169,97,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.lux-brand-mark img {
    width: 32px;
    height: auto;
}

.lux-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.lux-brand-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.lux-brand-name em {
    color: var(--bty-gold-light);
    font-style: italic;
    font-weight: 500;
}

.lux-brand-tagline {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: rgba(255,255,255,0.7);
    margin-top: 4px;
}

.lux-visual-content {
    position: relative;
    z-index: 2;
    max-width: 480px;
}

.lux-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--bty-gold-light);
    padding: 8px 18px;
    background: rgba(201,169,97,0.12);
    border: 1px solid rgba(201,169,97,0.35);
    border-radius: 100px;
    margin-bottom: 28px;
}

.lux-headline {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(38px, 4.4vw, 58px);
    font-weight: 500;
    line-height: 1.05;
    margin: 0 0 22px;
    letter-spacing: -0.5px;
}

.lux-headline em {
    font-style: italic;
    font-weight: 400;
    color: var(--bty-gold-light);
}

.lux-sub {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255,255,255,0.78);
    font-weight: 300;
    margin: 0;
    max-width: 420px;
}

.lux-testimonial {
    position: relative;
    z-index: 2;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    gap: 16px;
}

.lux-testi-stars {
    color: var(--bty-gold);
    font-size: 13px;
    letter-spacing: 1px;
}

.lux-testi-text {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 15px;
    color: rgba(255,255,255,0.85);
    line-height: 1.45;
    margin: 6px 0 0;
}

@media (max-width: 991.98px) {
    .lux-headline { font-size: 30px; }
    .lux-sub { font-size: 14px; }
    .lux-testimonial { display: none; }
}

/* ═══ LATO DESTRO · FORM ═══ */
.lux-form-side {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 48px;
    background: var(--bty-cream);
}

@media (max-width: 991.98px) {
    .lux-form-side {
        padding: 40px 24px 60px;
    }
}

.lux-form-deco {
    position: absolute;
    top: 32px;
    right: 32px;
    z-index: 1;
}

.lux-back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    color: var(--bty-text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-radius: 100px;
    transition: all 0.25s ease;
    background: transparent;
    border: 1px solid transparent;
}

.lux-back-home:hover {
    color: var(--bty-black);
    background: rgba(255,255,255,0.6);
    border-color: var(--bty-border);
}

.lux-form-wrap {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 2;
}

.lux-mobile-brand {
    display: none;
    text-align: center;
    margin-bottom: 32px;
}

@media (max-width: 991.98px) {
    .lux-mobile-brand {
        display: block;
    }
}

.lux-mobile-brand img {
    width: 56px;
    height: auto;
}

.lux-mobile-brand h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    font-weight: 600;
    color: var(--bty-black);
    margin: 12px 0 0;
}

.lux-mobile-brand h3 em {
    font-style: italic;
    color: var(--bty-gold-deep);
    font-weight: 500;
}

.lux-form-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--bty-gold-deep);
    margin-bottom: 14px;
}

.lux-form-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 42px;
    font-weight: 500;
    color: var(--bty-black);
    line-height: 1.05;
    margin: 0 0 12px;
    letter-spacing: -0.4px;
}

.lux-form-title em {
    font-style: italic;
    color: var(--bty-gold-deep);
}

.lux-form-sub {
    color: var(--bty-text-muted);
    font-size: 15px;
    margin: 0 0 36px;
    font-weight: 400;
}

.lux-alert {
    background: linear-gradient(135deg, #fff5f5, #ffeaea);
    border: 1px solid #f5b8b8;
    color: #8b1f1f;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: luxShake 0.4s ease;
}

@keyframes luxShake {
    0%,100% { transform: translateX(0); }
    25%     { transform: translateX(-6px); }
    75%     { transform: translateX(6px); }
}

.lux-field {
    margin-bottom: 22px;
}

.lux-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--bty-text-muted);
    margin-bottom: 10px;
}

.lux-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1.5px solid var(--bty-border);
    border-radius: 14px;
    transition: all 0.25s ease;
    overflow: hidden;
}

.lux-input-wrap:focus-within {
    border-color: var(--bty-gold);
    box-shadow: 0 0 0 4px rgba(201,169,97,0.12);
}

.lux-input-icon {
    width: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bty-text-muted);
    font-size: 16px;
    flex-shrink: 0;
    transition: color 0.25s ease;
}

.lux-input-wrap:focus-within .lux-input-icon {
    color: var(--bty-gold-deep);
}

.lux-input {
    flex-grow: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 16px 18px 16px 0;
    font-size: 15px;
    color: var(--bty-text);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.lux-input::placeholder {
    color: #b5b5b5;
    font-weight: 400;
}

.lux-pw-toggle {
    width: 48px;
    background: transparent;
    border: none;
    color: var(--bty-text-muted);
    cursor: pointer;
    font-size: 15px;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.lux-pw-toggle:hover {
    color: var(--bty-gold-deep);
}

.lux-row-helpers {
    display: flex;
    justify-content: flex-end;
    margin: -8px 0 28px;
}

.lux-link {
    color: var(--bty-gold-deep);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: color 0.2s ease;
    border-bottom: 1px solid transparent;
}

.lux-link:hover {
    color: var(--bty-black);
    border-bottom-color: var(--bty-gold);
}

.lux-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 17px 24px;
    background: var(--bty-black);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
    position: relative;
    overflow: hidden;
}

.lux-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--bty-gold-deep), var(--bty-gold));
    opacity: 0;
    transition: opacity 0.35s ease;
}

.lux-btn span,
.lux-btn i {
    position: relative;
    z-index: 1;
}

.lux-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(201,169,97,0.4);
}

.lux-btn:hover::before {
    opacity: 1;
}

.lux-btn:active {
    transform: translateY(0);
}

.lux-btn i {
    transition: transform 0.3s ease;
}

.lux-btn:hover i {
    transform: translateX(4px);
}

.lux-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.lux-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--bty-text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 36px 0 24px;
}

.lux-divider::before,
.lux-divider::after {
    content: '';
    flex-grow: 1;
    height: 1px;
    background: var(--bty-border);
}

.lux-divider span {
    padding: 0 16px;
}

.lux-cta-register {
    text-align: center;
    color: var(--bty-text-muted);
    font-size: 14px;
}

.lux-cta-register a {
    color: var(--bty-black);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid var(--bty-gold);
    padding-bottom: 1px;
    transition: all 0.2s ease;
}

.lux-cta-register a:hover {
    color: var(--bty-gold-deep);
    border-bottom-color: var(--bty-gold-deep);
}

.lux-footer-mini {
    text-align: center;
    margin-top: 40px;
    color: #aaa;
    font-size: 12px;
}

.lux-footer-mini a {
    color: #999;
    text-decoration: none;
    margin: 0 8px;
}

.lux-footer-mini a:hover {
    color: var(--bty-gold-deep);
}