/* ============================================================
   TaskFlow Auth — Premium corporate
   ============================================================ */

.auth-body {
    margin: 0;
    background: var(--slate-50, #f8fafc);
    min-height: 100vh;
    font-family: 'Inter', -apple-system, sans-serif;
    color: #0f172a;
}

.auth-container {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    min-height: 100vh;
}

/* Panel izquierdo: oscuro corporativo */
.auth-left {
    background: #0a0e1a;
    background-image:
        radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(124, 58, 237, 0.10) 0%, transparent 50%);
    color: #f8fafc;
    padding: 40px 56px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.auth-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

.auth-brand {
    position: relative;
    z-index: 1;
}

.auth-brand .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    letter-spacing: -0.02em;
}

.auth-brand .logo svg {
    width: 28px;
    height: 28px;
}

.auth-hero {
    margin-top: auto;
    margin-bottom: auto;
    max-width: 500px;
    position: relative;
    z-index: 1;
}

.auth-hero h1 {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 18px;
    letter-spacing: -0.035em;
    color: white;
}

.auth-hero .highlight {
    background: linear-gradient(135deg, #60a5fa, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-hero p {
    font-size: 16px;
    color: rgba(248, 250, 252, 0.7);
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: rgba(248, 250, 252, 0.85);
}

.feature-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(37, 99, 235, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #60a5fa;
    flex-shrink: 0;
}
.feature-icon svg { width: 14px; height: 14px; }

.auth-stats {
    display: flex;
    gap: 28px;
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.08);
    position: relative;
    z-index: 1;
}

.auth-stat .num {
    font-size: 22px;
    font-weight: 700;
    color: white;
    letter-spacing: -0.02em;
}

.auth-stat .label {
    font-size: 11px;
    color: rgba(248, 250, 252, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 2px;
}

/* Panel derecho: blanco con formulario */
.auth-right {
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.auth-form-wrapper {
    width: 100%;
    max-width: 380px;
}

.auth-form-wrapper h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #0f172a;
    letter-spacing: -0.025em;
}

.auth-subtitle {
    color: #475569;
    margin-bottom: 28px;
    font-size: 14px;
}

.auth-form .form-group {
    margin-bottom: 16px;
}

.auth-form label {
    display: block;
    font-size: 12.5px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #0f172a;
    letter-spacing: -0.005em;
}

.auth-form .input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-form .input-wrap svg {
    position: absolute;
    left: 12px;
    width: 16px;
    height: 16px;
    color: #94a3b8;
    pointer-events: none;
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
    width: 100%;
    padding: 10px 14px 10px 38px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.15s ease;
    color: #0f172a;
    background: white;
}

.auth-form input::placeholder {
    color: #94a3b8;
}

.auth-form input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 6px 0 20px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    font-size: 13px;
    color: #475569;
}

.checkbox input { accent-color: #2563eb; }

.link {
    color: #2563eb;
    font-weight: 500;
    text-decoration: none;
    font-size: 13px;
}
.link:hover { text-decoration: underline; color: #1d4ed8; }

.btn-primary {
    background: #2563eb;
    color: white;
    border: none;
    padding: 11px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s ease;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.15);
}
.btn-primary:hover { background: #1d4ed8; }

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0 20px;
    color: #94a3b8;
    font-size: 12px;
}
.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    color: #475569;
    font-size: 13.5px;
}

.demo-info {
    margin-top: 20px;
    padding: 12px 14px;
    background: #f8fafc;
    border-radius: 6px;
    font-size: 12px;
    color: #475569;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.demo-info svg { width: 14px; height: 14px; color: #2563eb; flex-shrink: 0; }
.demo-info code {
    background: white;
    padding: 1px 6px;
    border-radius: 3px;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    font-family: 'SF Mono', Menlo, monospace;
    font-size: 11.5px;
}

.alert {
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.alert svg { width: 16px; height: 16px; flex-shrink: 0; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }

@media (max-width: 900px) {
    .auth-container { grid-template-columns: 1fr; }
    .auth-left { display: none; }
    .auth-right { padding: 32px 20px; }
}
