/* =================================
   Login — SoporteTec
   ================================= */
:root {
    --primary:       #6366f1;
    --primary-dark:  #4f46e5;
    --accent:        #ec4899;
    --text:          #1f2937;
    --text-muted:    #6b7280;
    --text-soft:     #9ca3af;
    --border:        #e5e7eb;
    --danger:        #ef4444;
    --bg-card:       #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

.login-body {
    font-family: 'Inter', system-ui, sans-serif;
    background: linear-gradient(135deg, #eef2ff 0%, #fdf4ff 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--text);
}

.login-shell {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 980px;
    background: var(--bg-card);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(99,102,241,0.20);
    min-height: 560px;
}

/* ----- Panel izquierdo ----- */
.login-side {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, var(--accent) 130%);
    color: #fff;
    padding: 38px 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}
.login-side::before {
    content: '';
    position: absolute;
    width: 360px; height: 360px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    top: -120px; right: -120px;
}
.login-side::after {
    content: '';
    position: absolute;
    width: 240px; height: 240px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    bottom: -80px; left: -80px;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}
.login-brand i {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.18);
    border-radius: 11px;
    display: grid; place-items: center;
    font-size: 1.1rem;
    backdrop-filter: blur(4px);
}

.login-side-content { position: relative; z-index: 1; }
.login-side-content h2 {
    font-size: 1.55rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.25;
}
.login-side-content p {
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 22px;
}

.login-features { list-style: none; }
.login-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.9);
}
.login-features i { color: #c7d2fe; }

.login-side-footer {
    position: relative; z-index: 1;
    font-size: 0.78rem;
    opacity: 0.75;
}

/* ----- Panel derecho ----- */
.login-main {
    padding: 50px 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-card { width: 100%; max-width: 380px; }

.login-card h1 {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}
.login-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 26px;
}

.login-alert {
    background: #fee2e2;
    color: var(--danger);
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.85rem;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    letter-spacing: 0.2px;
}

.input-icon { position: relative; }
.input-icon > i {
    position: absolute;
    left: 14px; top: 50%;
    transform: translateY(-50%);
    color: var(--text-soft);
    font-size: 0.95rem;
    pointer-events: none;
}
.input-icon .form-control {
    width: 100%;
    padding: 11px 14px 11px 42px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 0.92rem;
    color: var(--text);
    background: #fff;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.input-icon .form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99,102,241,0.12);
}

.toggle-pass {
    position: absolute;
    right: 8px; top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-soft);
    padding: 6px 10px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}
.toggle-pass:hover { color: var(--primary); background: #eef2ff; }

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    font-size: 0.84rem;
}
.check-line {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--text-muted);
    cursor: pointer;
}
.check-line input { accent-color: var(--primary); }
.login-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}
.login-link:hover { text-decoration: underline; }

.btn-login {
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.94rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 10px 24px rgba(99,102,241,0.30);
    transition: filter 0.2s, transform 0.05s;
    font-family: inherit;
}
.btn-login:hover { filter: brightness(1.06); }
.btn-login:active { transform: translateY(1px); }

.login-demo {
    margin-top: 22px;
    padding: 12px 14px;
    background: #f9fafb;
    border: 1px dashed var(--border);
    border-radius: 10px;
    font-size: 0.78rem;
    color: var(--text-muted);
}
.login-demo code {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 2px 7px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: var(--primary);
}

/* Responsive */
@media (max-width: 820px) {
    .login-shell { grid-template-columns: 1fr; max-width: 460px; }
    .login-side { padding: 30px; min-height: auto; }
    .login-side-content h2 { font-size: 1.3rem; }
    .login-features { display: none; }
    .login-main { padding: 36px 28px; }
}
