/* AnnualPOS Management BI V3.7 - Login visual estilo AnnualPOS */
:root {
    --ap-login-primary: #635bff;
    --ap-login-primary-dark: #4635d9;
    --ap-login-accent: #0ea5e9;
    --ap-login-text: #101827;
    --ap-login-muted: #667085;
    --ap-login-border: #dce4f2;
    --ap-login-input: #edf4ff;
    --ap-login-green: #0aa36f;
}

body.management-login-body {
    min-height: 100vh;
    margin: 0;
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--ap-login-text);
    background:
        radial-gradient(circle at 21% 26%, rgba(255,255,255,.22) 0 0, transparent 28%),
        radial-gradient(circle at 78% 72%, rgba(14,165,233,.18) 0 0, transparent 30%),
        linear-gradient(135deg, #4f5df4 0%, #654fe8 48%, #7a25ee 100%);
    overflow-x: hidden;
}

.annual-login-stage {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.annual-login-card {
    width: min(1040px, calc(100vw - 56px));
    min-height: 600px;
    display: grid;
    grid-template-columns: 52% 48%;
    border-radius: 22px;
    overflow: hidden;
    background: rgba(255,255,255,.96);
    box-shadow: 0 34px 90px rgba(14, 23, 51, .28);
    border: 1px solid rgba(255,255,255,.28);
    animation: annualLoginIn .55s ease both;
}

.annual-login-form-panel {
    background: #f8fafc;
    padding: 54px 64px 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.annual-login-logo-wrap {
    text-align: center;
    margin-bottom: 26px;
}

.annual-login-logo {
    display: block;
    width: min(265px, 82%);
    height: auto;
    margin: 0 auto 8px;
    object-fit: contain;
}

.annual-login-product-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 12px;
    border-radius: 999px;
    color: #5b55ea;
    background: #eef2ff;
    border: 1px solid #dbe4ff;
    font-size: .74rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .09em;
}

.annual-login-copy h1 {
    margin: 0 0 6px;
    font-size: clamp(1.75rem, 2.5vw, 2.15rem);
    line-height: 1;
    color: #121826;
    font-weight: 900;
}

.annual-login-copy p {
    margin: 0 0 26px;
    color: var(--ap-login-muted);
    font-size: .98rem;
}

.annual-license-pill {
    width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 13px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    font-weight: 800;
    font-size: .9rem;
    margin-bottom: 24px;
    box-shadow: 0 12px 30px rgba(5,150,105,.20);
}

.annual-license-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255,255,255,.22);
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.annual-login-alert {
    display: flex;
    gap: 10px;
    align-items: center;
    color: #991b1b;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 18px;
    font-weight: 700;
}

.annual-login-form {
    display: grid;
    gap: 18px;
}

.annual-login-field > span {
    display: block;
    margin-bottom: 8px;
    color: #263244;
    font-size: .9rem;
    font-weight: 800;
}

.annual-input-shell {
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 13px;
    background: #eaf2ff;
    border: 1px solid #d7e1f0;
    padding: 0 15px;
    color: #96a1b2;
    box-shadow: inset 0 1px 3px rgba(16,24,40,.05);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, background .2s ease;
}

.annual-input-shell:focus-within {
    border-color: var(--ap-login-primary);
    background: #f8fbff;
    box-shadow: 0 0 0 4px rgba(99,91,255,.12), inset 0 1px 2px rgba(16,24,40,.05);
    transform: translateY(-1px);
}

.annual-input-shell input {
    width: 100%;
    height: 52px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #101827;
    font-size: 1rem;
    font-weight: 700;
}

.annual-input-shell input::placeholder {
    color: #9ca3af;
    font-weight: 600;
}

.annual-login-button {
    min-height: 56px;
    border: 0;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #fff;
    background: linear-gradient(135deg, #6866f4 0%, #5138e4 100%);
    font-size: 1.02rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(81,56,228,.25);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.annual-login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(81,56,228,.35);
    filter: saturate(1.08);
}

.annual-login-button:active {
    transform: translateY(0);
}

.annual-login-footer-line {
    height: 1px;
    background: #dfe7f4;
    margin: 28px 0 18px;
}

.annual-login-footnote {
    text-align: center;
    margin: 0;
    color: #98a2b3;
    font-size: .82rem;
}

.annual-login-hero-panel {
    position: relative;
    overflow: hidden;
    color: white;
    background:
        radial-gradient(circle at 36% 24%, rgba(255,255,255,.14), transparent 24%),
        linear-gradient(145deg, rgba(91,82,232,.92) 0%, rgba(89,69,230,.95) 52%, rgba(91,67,231,.9) 100%);
    padding: 58px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    isolation: isolate;
}

.annual-login-hero-panel:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,.08), rgba(255,255,255,0));
    z-index: -2;
}

.annual-hero-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(2px);
    opacity: .55;
    z-index: -1;
}

.annual-hero-glow-a {
    width: 260px;
    height: 260px;
    top: -72px;
    right: -90px;
    background: rgba(255,255,255,.11);
}

.annual-hero-glow-b {
    width: 190px;
    height: 190px;
    bottom: -80px;
    left: 18%;
    background: rgba(14,165,233,.22);
}

.annual-main-bi-icon {
    width: 124px;
    height: 124px;
    display: grid;
    place-items: center;
    color: rgba(255,255,255,.88);
    border-radius: 34px;
    background: rgba(255,255,255,.09);
    border: 1px solid rgba(255,255,255,.18);
    box-shadow: 0 24px 50px rgba(22,25,76,.18);
    margin-bottom: 26px;
    animation: annualFloat 3.8s ease-in-out infinite;
}

.annual-login-hero-panel h2 {
    margin: 0 0 12px;
    font-size: clamp(1.75rem, 2.5vw, 2.35rem);
    line-height: 1.08;
    font-weight: 950;
    text-shadow: 0 6px 22px rgba(0,0,0,.12);
}

.annual-login-hero-panel p {
    max-width: 390px;
    margin: 0 auto 34px;
    color: rgba(255,255,255,.88);
    font-size: 1rem;
    line-height: 1.45;
}

.annual-feature-row {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 2px;
}

.annual-feature {
    display: grid;
    place-items: center;
    gap: 9px;
    color: rgba(255,255,255,.92);
    font-size: .8rem;
    font-weight: 800;
}

.annual-feature svg {
    filter: drop-shadow(0 10px 16px rgba(0,0,0,.12));
}

.annual-mini-dashboard {
    width: min(360px, 100%);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 34px;
}

.annual-mini-card {
    padding: 12px 10px;
    border-radius: 16px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    backdrop-filter: blur(10px);
}

.annual-mini-card span {
    display: block;
    color: rgba(255,255,255,.74);
    font-size: .72rem;
    font-weight: 800;
}

.annual-mini-card b {
    display: block;
    color: white;
    font-size: 1.08rem;
    margin-top: 4px;
}

@keyframes annualLoginIn {
    from { opacity: 0; transform: translateY(18px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

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

@media (max-width: 980px) {
    .annual-login-card {
        grid-template-columns: 1fr;
        width: min(560px, calc(100vw - 32px));
    }
    .annual-login-hero-panel {
        order: -1;
        min-height: 300px;
        padding: 36px 28px;
    }
    .annual-login-form-panel {
        padding: 38px 32px 34px;
    }
    .annual-main-bi-icon {
        width: 96px;
        height: 96px;
        margin-bottom: 18px;
    }
    .annual-main-bi-icon svg {
        width: 74px;
        height: 74px;
    }
}

@media (max-width: 560px) {
    .annual-login-stage {
        padding: 16px;
        align-items: flex-start;
    }
    .annual-login-card {
        width: 100%;
        border-radius: 18px;
    }
    .annual-login-form-panel {
        padding: 30px 22px;
    }
    .annual-login-hero-panel {
        display: none;
    }
    .annual-login-logo {
        width: min(230px, 88%);
    }
    .annual-login-copy h1 {
        font-size: 1.65rem;
    }
}
