/* ==========================================================
   CASSA ACECRM - LOGIN SPLIT STYLE
   Variante ispirata al mockup 3
   Solo grafica: non modifica PHP, POST o funzionalità
   ========================================================== */

:root {
    --ace-dark: #071426;
    --ace-dark-2: #0f2b52;
    --ace-blue: #2563eb;
    --ace-blue-hover: #1d4ed8;
    --ace-bg: #f4f8ff;
    --ace-card: #ffffff;
    --ace-border: #dbe4f0;
    --ace-text: #0f172a;
    --ace-muted: #64748b;
    --ace-radius: 24px;
    --ace-shadow: 0 30px 90px rgba(15, 23, 42, 0.16);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body.login-page {
    margin: 0;
    min-height: 100vh;
    color: var(--ace-text);
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    background: #f7faff;
    overflow-x: hidden;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 42% 58%;
}

/* ==========================================================
   COLONNA SINISTRA
   ========================================================== */

.login-visual {
    position: relative;
    background:
        radial-gradient(circle at 20% 15%, rgba(96, 165, 250, 0.30), transparent 28%),
        linear-gradient(145deg, #0b1b33 0%, #0f2d58 50%, #0b1d3d 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    padding: 64px;
    overflow: hidden;
}

.login-visual::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    left: -180px;
    bottom: -140px;
    background: rgba(37, 99, 235, 0.30);
    border-radius: 50%;
    filter: blur(6px);
}

.login-visual::after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    right: -170px;
    top: -130px;
    background: rgba(147, 197, 253, 0.16);
    border-radius: 50%;
    filter: blur(8px);
}

.login-visual-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
}

.login-main-logo {
    width: 210px;
    max-height: 110px;
    object-fit: contain;
    display: block;
    margin-bottom: 44px;
    filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.22));
}

.login-visual-title {
    font-size: 42px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -1px;
    margin: 0 0 18px;
}

.login-visual-text {
    max-width: 420px;
    margin: 0;
    font-size: 17px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
}

/* ==========================================================
   MOCKUP CASSA DECORATIVO
   ========================================================== */

.cash-register-mockup {
    position: relative;
    width: 330px;
    height: 250px;
    margin-top: 58px;
    margin-bottom: 48px;
}

.cash-screen {
    position: absolute;
    left: 72px;
    top: 0;
    width: 190px;
    height: 130px;
    background: linear-gradient(145deg, #1d4ed8, #60a5fa);
    border-radius: 18px;
    transform: perspective(600px) rotateX(7deg) rotateY(-9deg);
    box-shadow: 0 26px 46px rgba(0, 0, 0, 0.34);
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.screen-top {
    width: 62%;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.65);
    margin-bottom: 18px;
}

.screen-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.screen-grid span {
    height: 24px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.30);
}

.cash-base {
    position: absolute;
    left: 48px;
    top: 116px;
    width: 245px;
    height: 96px;
    background: linear-gradient(145deg, #08111f, #1e293b);
    border-radius: 18px 18px 26px 26px;
    box-shadow: 0 26px 44px rgba(0, 0, 0, 0.36);
}

.cash-drawer {
    position: absolute;
    left: 48px;
    right: 48px;
    bottom: 22px;
    height: 18px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.28);
}

.receipt-printer {
    position: absolute;
    left: 0;
    top: 142px;
    width: 94px;
    height: 66px;
    background: #eaf2ff;
    border-radius: 16px;
    box-shadow: 0 20px 34px rgba(0, 0, 0, 0.26);
}

.receipt-printer span {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 16px;
    height: 8px;
    border-radius: 999px;
    background: #94a3b8;
}

.secure-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.secure-icon {
    font-size: 16px;
}

/* ==========================================================
   COLONNA DESTRA FORM
   ========================================================== */

.login-form-area {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    background:
        radial-gradient(circle at 88% 12%, rgba(37, 99, 235, 0.09), transparent 26%),
        radial-gradient(circle at 18% 84%, rgba(15, 23, 42, 0.08), transparent 28%),
        linear-gradient(135deg, #ffffff 0%, #f4f8ff 100%);
}

.login-card {
    width: 100%;
    max-width: 460px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(219, 228, 240, 0.96);
    border-radius: var(--ace-radius);
    box-shadow: var(--ace-shadow);
    padding: 44px 40px 36px;
    backdrop-filter: blur(16px);
}

.login-brand {
    text-align: center;
    margin-bottom: 32px;
}

.login-title {
    font-size: 30px;
    line-height: 1.15;
    font-weight: 800;
    margin: 0;
    color: var(--ace-text);
    letter-spacing: -0.5px;
}

.login-subtitle {
    max-width: 320px;
    margin: 10px auto 0;
    color: var(--ace-muted);
    font-size: 14px;
    line-height: 1.55;
}

.form-floating {
    margin-bottom: 15px;
}

.form-floating > .form-control {
    height: 58px;
    border: 1px solid var(--ace-border);
    border-radius: 16px;
    color: var(--ace-text);
    font-size: 15px;
    box-shadow: none;
    background-color: #ffffff;
    transition: all 0.2s ease-in-out;
}

.form-floating > label {
    color: var(--ace-muted);
    font-size: 14px;
    padding-left: 14px;
}

.form-floating > .form-control:focus {
    border-color: var(--ace-blue);
    box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.12);
}

.form-floating > .form-control:hover {
    border-color: #b8c7dd;
}

.login-button {
    height: 56px;
    margin-top: 6px;
    border-radius: 16px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: none;
    color: #ffffff;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.2px;
    box-shadow: 0 18px 36px rgba(37, 99, 235, 0.30);
    transition: all 0.22s ease-in-out;
}

.login-button:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 24px 46px rgba(37, 99, 235, 0.38);
}

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

.login-footer {
    color: var(--ace-muted);
    font-size: 13px;
    margin: 26px 0 0 0;
    text-align: center;
}

.login-footer strong {
    color: var(--ace-text);
    font-weight: 800;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 1050px) {
    .login-shell {
        grid-template-columns: 1fr;
    }

    .login-visual {
        min-height: auto;
        padding: 42px 28px;
        justify-content: center;
        text-align: center;
    }

    .login-visual-content {
        max-width: 620px;
    }

    .login-main-logo {
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 24px;
    }

    .login-visual-text {
        margin-left: auto;
        margin-right: auto;
    }

    .cash-register-mockup {
        margin-left: auto;
        margin-right: auto;
    }

    .login-form-area {
        min-height: auto;
        padding: 42px 18px;
    }
}

@media (max-width: 520px) {
    .login-visual {
        padding: 34px 20px;
    }

    .login-main-logo {
        width: 170px;
    }

    .login-visual-title {
        font-size: 32px;
    }

    .login-visual-text {
        font-size: 15px;
    }

    .cash-register-mockup {
        width: 280px;
        transform: scale(0.86);
        transform-origin: center;
        margin-top: 32px;
        margin-bottom: 28px;
    }

    .login-card {
        padding: 34px 22px 28px;
        border-radius: 22px;
    }

    .login-title {
        font-size: 26px;
    }
}