/* login.css — Secomint · Glassmorphism */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

/* ── Variables ─────────────────────────────────────────── */
:root {
    --glass-bg:      rgba(255, 255, 255, 0.09);
    --glass-border:  rgba(255, 255, 255, 0.20);
    --glass-shadow:  rgba(0, 20, 70, 0.35);

    --accent-blue:   #2563EB;
    --accent-cyan:   #06B6D4;
    --accent-green:  #10B981;
    --accent-glow:   rgba(37, 99, 235, 0.45);

    --text-primary:  #F0F6FF;
    --text-secondary:rgba(240, 246, 255, 0.60);
    --text-muted:    rgba(240, 246, 255, 0.35);

    --input-bg:      rgba(255, 255, 255, 0.07);
    --input-border:  rgba(255, 255, 255, 0.16);
    --input-focus:   rgba(37, 99, 235, 0.75);

    --font-base: 0.82rem;
    --font-sm:   0.75rem;
    --font-xs:   0.68rem;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ── Body — fondo oceánico profundo ────────────────────── */
body {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--font-base);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 60% at 15% 10%,  rgba(14, 40, 130, 0.90) 0%, transparent 60%),
        radial-gradient(ellipse 60% 70% at 85% 90%,  rgba(6,  70, 110, 0.80) 0%, transparent 55%),
        radial-gradient(ellipse 50% 50% at 50% 50%,  rgba(2,  18,  62, 1.00) 0%, #010b26 100%);
}

/* Orbes flotantes */
body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    animation: driftOrb 14s ease-in-out infinite alternate;
}
body::before {
    width: 520px; height: 520px;
    top: -130px; left: -110px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.28) 0%, transparent 70%);
}
body::after {
    width: 420px; height: 420px;
    bottom: -110px; right: -90px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.20) 0%, transparent 70%);
    animation-delay: -7s;
}

@keyframes driftOrb {
    0%   { transform: translate(0,   0  ) scale(1.00); }
    100% { transform: translate(28px, 18px) scale(1.08); }
}

/* ── Wrapper principal ─────────────────────────────────── */
.login-wrapper {
    position: relative;
    width: 100%;
    max-width: 940px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    min-height: 530px;
    border-radius: 26px;
    overflow: hidden;

    background: var(--glass-bg);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);

    box-shadow:
        0 0 0 1px var(--glass-border),
        0 36px 90px var(--glass-shadow),
        0 8px 28px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.13);

    animation: cardIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(30px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

/* ── Panel izquierdo — marca ───────────────────────────── */
.brand-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 48px 32px;
    text-align: center;
    overflow: hidden;
    border-right: 1px solid var(--glass-border);
    background: linear-gradient(150deg,
        rgba(37, 99, 235, 0.22) 0%,
        rgba(6, 182, 212, 0.11) 55%,
        rgba(16, 185, 129, 0.08) 100%);
}

.brand-panel::before {
    content: '';
    position: absolute;
    width: 280px; height: 280px;
    top: -80px; left: -80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37,99,235,0.18) 0%, transparent 70%);
    pointer-events: none;
}

.brand-panel::after {
    content: '';
    position: absolute;
    width: 200px; height: 200px;
    bottom: -50px; right: -50px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6,182,212,0.14) 0%, transparent 70%);
    pointer-events: none;
}

/* Logo */
.logo-wrap {
    position: relative;
    width: 90px; height: 90px;
    margin-bottom: 26px;
    animation: floatY 6s ease-in-out infinite;
}

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-9px); }
}

.logo-glow {
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37,99,235,0.35) 0%, transparent 70%);
    animation: pulseGlow 3s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    from { opacity: 0.5; transform: scale(0.95); }
    to   { opacity: 1.0; transform: scale(1.05); }
}

.logo-wrap img,
.logo-fallback {
    position: relative;
    width: 90px; height: 90px;
    border-radius: 50%;
    object-fit: contain;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    z-index: 1;
}

/* Nombre empresa */
.brand-name {
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 10px;
    text-shadow: 0 2px 24px rgba(37,99,235,0.55);
}

.brand-tagline {
    font-size: var(--font-sm);
    font-weight: 300;
    color: var(--text-secondary);
    letter-spacing: 0.03em;
    line-height: 1.65;
}

/* Pills decorativas */
.brand-pills {
    display: flex;
    gap: 7px;
    margin-top: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.brand-pill {
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-secondary);
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    padding: 4px 11px;
}

/* ── Panel derecho — formulario ────────────────────────── */
.form-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 44px;
    background: rgba(255,255,255,0.03);
}

.form-heading {
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
    letter-spacing: -0.01em;
}

.form-subheading {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Campo */
.field-group { margin-bottom: 16px; }

.field-label {
    display: block;
    font-size: var(--font-xs);
    font-weight: 500;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 7px;
}

.field-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.field-icon {
    position: absolute;
    left: 13px;
    color: var(--text-muted);
    font-size: 0.9rem;
    pointer-events: none;
    transition: color 0.25s;
    z-index: 1;
}

.field-wrap input {
    width: 100%;
    padding: 11px 13px 11px 37px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: 'DM Sans', sans-serif;
    font-size: var(--font-base);
    outline: none;
    transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
    -webkit-font-smoothing: antialiased;
}

.field-wrap input::placeholder {
    color: var(--text-muted);
    font-size: var(--font-sm);
}

.field-wrap input:focus {
    border-color: var(--input-focus);
    background: rgba(255,255,255,0.10);
    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.18),
        0 2px 12px rgba(37, 99, 235, 0.10);
}

.field-wrap:focus-within .field-icon {
    color: var(--accent-cyan);
}

/* ── Botón ─────────────────────────────────────────────── */
.btn-submit {
    width: 100%;
    padding: 13px;
    margin-top: 10px;
    border: none;
    border-radius: 10px;
    font-family: 'Syne', sans-serif;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-cyan) 100%);
    box-shadow:
        0 4px 22px rgba(37, 99, 235, 0.42),
        inset 0 1px 0 rgba(255,255,255,0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-submit::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.14) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.25s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 30px rgba(37, 99, 235, 0.58),
        inset 0 1px 0 rgba(255,255,255,0.18);
}

.btn-submit:hover::after { opacity: 1; }
.btn-submit:active       { transform: translateY(0); }

/* ── Enlace ────────────────────────────────────────────── */
.forgot-link {
    display: block;
    text-align: center;
    margin-top: 17px;
    font-size: var(--font-xs);
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.2s;
}
.forgot-link:hover { color: var(--accent-cyan); }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 660px) {
    .login-wrapper {
        grid-template-columns: 1fr;
        max-width: 400px;
        border-radius: 20px;
    }
    .brand-panel {
        padding: 32px 24px 24px;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
    }
    .logo-wrap, .logo-wrap img, .logo-fallback { width: 68px; height: 68px; }
    .logo-fallback { font-size: 1.9rem; }
    .brand-name   { font-size: 1.18rem; }
    .form-panel   { padding: 30px 26px 40px; }
    .form-heading { font-size: 1.2rem; }
}