/* EstéticOS — Login Principal CSS v3 (Refined Glassmorphism) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary:       #7c3aed;
    --primary-light: #9f67fa;
    --primary-dark:  #5b21b6;
    --accent:        #06b6d4;
    --dark-panel:    #0a0912;
    --text-dark:     #1e1b4b;
    --text-muted:    #6b7280;
    --border:        rgba(124,58,237,0.12);
}

html, body { height: 100%; font-family: 'Inter', sans-serif; background: #fff; overflow: hidden; }

/* ── SPLIT ── */
.split-screen { display: flex; height: 100vh; width: 100vw; }

/* ── LEFT PANEL — Fondo blanco ── */
.left-panel {
    flex: 1.1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 70px;
    overflow: hidden;
    background: #ffffff;
    text-align: center;
}

.left-panel::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 55% 45% at 10% 10%, rgba(124,58,237,.06) 0%, transparent 60%),
        radial-gradient(ellipse 45% 40% at 90% 90%, rgba(6,182,212,.05) 0%, transparent 60%);
    pointer-events: none;
}

.left-content {
    position: relative;
    z-index: 2;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Logo grande */
.brand-logo {
    width: clamp(220px, 30vw, 340px);
    height: auto;
    object-fit: contain;
    margin-bottom: 36px;
    filter: drop-shadow(0 8px 24px rgba(124,58,237,.12));
    animation: logoFloat 5s ease-in-out infinite;
}

.brand-placeholder {
    width: clamp(160px, 22vw, 240px);
    height: clamp(160px, 22vw, 240px);
    border-radius: 32px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(4rem, 8vw, 7rem);
    color: white;
    margin-bottom: 36px;
    box-shadow: 0 12px 40px rgba(124,58,237,.25);
    animation: logoFloat 5s ease-in-out infinite;
}

@keyframes logoFloat {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

.brand-name {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.4rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-desc {
    color: var(--text-muted);
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.7;
    margin-bottom: 0;
    max-width: 440px;
}

/* ── RIGHT PANEL — Glassmorphism Blue-ish ── */
.right-panel {
    flex: 1;
    background: radial-gradient(circle at 70% 30%, #161b33 0%, #0a0912 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 50px 48px;
    position: relative;
    border-left: 1px solid var(--border);
}

.right-panel::before {
    content: '';
    position: absolute;
    top: -160px; right: -160px;
    width: 360px; height: 360px; border-radius: 50%;
    background: radial-gradient(circle, rgba(124,58,237,.15), transparent 70%);
    pointer-events: none;
}

.login-box { 
    width: 100%; 
    max-width: 440px; 
    position: relative; 
    z-index: 2; 
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    padding: 50px 40px;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.6);
}

.login-header { margin-bottom: 35px; }
.login-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem; font-weight: 700;
    color: #fff; margin-bottom: 12px;
}
.login-header p { color: rgba(255,255,255,.5); font-size: .9rem; line-height: 1.5; }

/* Form */
.form-group { margin-bottom: 22px; }
.form-group label {
    display: block; font-size: .85rem; font-weight: 500;
    color: rgba(255,255,255,.7); margin-bottom: 8px; letter-spacing: .3px;
}

.input-wrapper { position: relative; }
.input-wrapper .icon-left {
    position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
    color: rgba(255,255,255,.3); font-size: .95rem; pointer-events: none;
}
.input-wrapper input {
    width: 100%;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px;
    padding: 14px 44px 14px 46px;
    color: white; font-size: .95rem; font-family: 'Inter', sans-serif;
    transition: all .3s; outline: none;
}
.input-wrapper input::placeholder { color: rgba(255,255,255,.2); }
.input-wrapper input:focus {
    border-color: var(--primary);
    background: rgba(124,58,237,.1);
    box-shadow: 0 0 0 4px rgba(124,58,237,.15);
}

.toggle-pass {
    position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
    color: rgba(255,255,255,.3); cursor: pointer; font-size: .95rem;
    background: none; border: none; padding: 4px; transition: color .2s;
}
.toggle-pass:hover { color: rgba(255,255,255,.6); }

/* Alerts */
.alert-error {
    background: rgba(239,68,68,.15); border: 1px solid rgba(239,68,68,.3);
    border-radius: 12px; padding: 14px 18px; color: #fca5a5; font-size: .88rem;
    margin-bottom: 20px; display: flex; align-items: flex-start; gap: 12px;
}
.alert-success {
    background: rgba(34,197,94,.15); border: 1px solid rgba(34,197,94,.3);
    border-radius: 12px; padding: 14px 18px; color: #86efac; font-size: .88rem;
    margin-bottom: 20px; display: flex; align-items: flex-start; gap: 12px;
}

/* Botón */
.btn-login {
    width: 100%; padding: 15px 22px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white; font-family: 'Inter', sans-serif;
    font-size: 1rem; font-weight: 600;
    border: none; border-radius: 14px; cursor: pointer;
    transition: all .3s; display: flex;
    align-items: center; justify-content: center; gap: 12px;
    margin-top: 10px; position: relative; overflow: hidden;
}
.btn-login::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    opacity: 0; transition: opacity 0.3s;
}
.btn-login:hover::before { opacity: 1; }
.btn-login:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(124,58,237,.5); }
.btn-login:active { transform: translateY(0); }
.btn-login span, .btn-login i { position: relative; z-index: 1; }

.copy-bottom {
    position: absolute; bottom: 25px; left: 0; right: 0;
    text-align: center; color: rgba(255,255,255,.2); font-size: .75rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
    .split-screen { flex-direction: column; overflow: auto; }
    html, body { overflow: auto; }
    .left-panel { padding: 40px 24px; flex: none; min-height: 320px; }
    .right-panel { width: 100%; min-width: unset; border-left: none; border-top: 1px solid rgba(255,255,255,.07); padding: 40px 20px 80px; }
    .login-box { padding: 40px 25px; }
}
