/*
 * Login de marca blanca, diseño «A · Dividido».
 * Colores: variables --gtc-* de Lib/ThemePalette.php (marca, acento, principal).
 */
body { margin: 0; background: #fff; color: #0F172A; }

/* Avisos del núcleo (contraseña incorrecta…) flotando arriba a la derecha */
body > .px-2.pt-2 { position: fixed; z-index: 1080; top: 12px; right: 12px; width: min(420px, calc(100% - 24px)); padding: 0 !important; }
body > .px-2.pt-2 .alert { border: 0; border-radius: 14px; box-shadow: 0 14px 40px rgba(15, 23, 42, .25); }

.gtc-login { display: flex; min-height: 100vh; }

/* Panel de marca */
.gtc-login-hero {
    position: relative; flex: 1 1 56%; overflow: hidden; color: #fff; padding: 56px 64px;
    display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
    background:
        radial-gradient(circle at 85% 15%, color-mix(in srgb, var(--gtc-accent) 60%, transparent), transparent 42%),
        radial-gradient(circle at 10% 90%, color-mix(in srgb, var(--gtc-accent) 50%, transparent), transparent 45%),
        linear-gradient(160deg, var(--gtc-brand) 0%, color-mix(in srgb, var(--gtc-brand) 75%, var(--gtc-accent)) 60%, color-mix(in srgb, var(--gtc-brand) 45%, var(--gtc-accent)) 100%);
}
.gtc-login-hero::before {
    content: ""; position: absolute; inset: 0; opacity: .18; pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, .9) 1px, transparent 1px); background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
    mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.gtc-login-hero > * { position: relative; }
.gtc-ring { position: absolute !important; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14); pointer-events: none; }
.gtc-r1 { width: 520px; height: 520px; right: -160px; bottom: -180px; }
.gtc-r2 { width: 340px; height: 340px; right: -70px; bottom: -90px; border-color: color-mix(in srgb, var(--gtc-accent) 55%, transparent); }
.gtc-r3 { width: 160px; height: 160px; right: 30px; bottom: 10px; background: color-mix(in srgb, var(--gtc-accent) 18%, transparent); }

.gtc-login-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.gtc-login-logo { display: block; max-height: 56px; max-width: 200px; object-fit: contain; }
.gtc-login-company { font-size: 20px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; overflow-wrap: anywhere; }
.gtc-login-text { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }

.gtc-login-claim h1 { font-size: clamp(32px, 4.2vw, 54px); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; margin: 0 0 18px; }
.gtc-login-claim h1 span {
    background: linear-gradient(90deg, color-mix(in srgb, var(--gtc-accent) 45%, #fff), #fff);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.gtc-login-claim p { font-size: 17px; opacity: .82; max-width: 460px; margin: 0; }
.gtc-login-feats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.gtc-login-feats span {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 8px 15px 8px 13px; border-radius: 999px; font-size: 13.5px;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
}
/* Font Awesome cambia <i> por <svg>: se selecciona el primer hijo, no la etiqueta */
.gtc-login-feats span > :first-child { flex: 0 0 auto; color: color-mix(in srgb, var(--gtc-accent) 45%, #fff); }

/* Panel del formulario */
.gtc-login-panel { flex: 1 1 44%; display: flex; align-items: center; justify-content: center; padding: 48px 32px; background: #fff; }
.gtc-login-form { width: 100%; max-width: 380px; }
.gtc-login-form h2 { font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 6px; }
.gtc-login-sub { color: #64748B; margin: 0 0 30px; }

.gtc-field { position: relative; display: block; margin-bottom: 14px; }
.gtc-field > :is(i, svg) { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #94A3B8; font-size: 15px; pointer-events: none; transition: color .2s; }
.gtc-field input {
    width: 100%; height: 54px; padding: 0 16px 0 46px; border-radius: 14px; font-size: 15.5px; outline: none;
    border: 1.5px solid #E2E8F0; background: #F8FAFC; color: #0F172A; transition: border-color .2s, box-shadow .2s, background .2s;
}
.gtc-field input:focus { border-color: var(--gtc-accent); background: #fff; box-shadow: 0 0 0 4px var(--gtc-accent-soft); }
.gtc-field:focus-within > :is(i, svg) { color: var(--gtc-accent); }

.gtc-go {
    width: 100%; height: 54px; margin-top: 16px; border: 0; border-radius: 14px; color: #fff; font-weight: 700; font-size: 16px;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    background: linear-gradient(135deg, var(--gtc-accent) 0%, color-mix(in srgb, var(--gtc-brand) 70%, var(--gtc-accent)) 100%);
    box-shadow: 0 12px 24px color-mix(in srgb, var(--gtc-accent) 35%, transparent);
    transition: transform .15s, box-shadow .15s;
}
.gtc-go:hover, .gtc-go:focus-visible { transform: translateY(-1px); box-shadow: 0 16px 30px color-mix(in srgb, var(--gtc-accent) 45%, transparent); outline: none; }
.gtc-go > :last-child { transition: transform .2s; }
.gtc-go:hover > :last-child { transform: translateX(4px); }

/* Móvil y tablet vertical: el panel de marca pasa a cabecera */
@media (max-width: 900px) {
    .gtc-login { flex-direction: column; }
    .gtc-login-hero { flex: 0 0 auto; padding: 28px 24px 40px; gap: 24px; }
    .gtc-login-claim h1 { font-size: 30px; margin: 0; }
    .gtc-login-claim p, .gtc-login-feats, .gtc-r1 { display: none; }
    .gtc-login-panel { flex: 1 0 auto; align-items: flex-start; padding: 32px 20px; margin-top: -20px; border-radius: 22px 22px 0 0; position: relative; }
}
@media (prefers-reduced-motion: reduce) {
    .gtc-go, .gtc-go > :last-child, .gtc-field input { transition: none; }
}
