/* =============================================================================
   Login novo (flag zapisp_layout_sidebar_dashboard) — App/views/auth/AuthNova_view.php
   Portado do protótipo de design "Zapisp - Autenticação - White".
   Página standalone: não carrega theme.min.css nem o shell do app.
   ========================================================================== */

/* Inter variable (pesos 100-900), self-hosted — mesmos .woff2 do app-inter-font.css */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url('../../fonts/inter/inter-variable-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url('../../fonts/inter/inter-variable-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: none;
    font-family: 'Inter', sans-serif;
    font-feature-settings: 'cv11';
}

html {
    overflow: hidden;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: #f8fafc;
    height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

.form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    row-gap: 23px;

    /* 3 células da grade + os 2 gaps entre elas (3×123 + 2×24). O conteúdo
       fecha em 376px sozinho, o que deixa a coluna central mais baixa que as
       laterais: a fileira de baixo sobe 20px e as conectoras do topo e as
       diagonais param antes da borda do card. */
    min-height: 417px;

    padding: 31px 40px;
    border-radius: 30px;
    background-color: #f8fafc;
    box-shadow:
        -10px -10px 40px -5px rgba(200, 202, 253, 0.4),
        10px 10px 40px -5px rgba(51, 94, 234, 0.15),
        0px 0px 50px -10px rgba(139, 131, 246, 0.25);
}

.top-input,
.bottom-input {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 12px;
    height: 36px;
    width: 304px;
    background-color: #f8fafc;
    border: 1px solid #d1d5dc;
    outline: none;
    font-size: 14px;
    font-weight: 400;
    color: #030712;
}

.bottom-input {
    border-top: none;
}

.top-input {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.bottom-input {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.top-input:focus,
.bottom-input:focus {
    border: 2px solid #2b7fff;
}

.top-input::placeholder,
.bottom-input::placeholder {
    color: #71717b;
    font-size: 14px;
    font-weight: 400;
}

/* Checkbox real (no protótipo era uma div decorativa) */
.checkbox {
    appearance: none;
    -webkit-appearance: none;
    flex: none;
    width: 16px;
    height: 16px;
    border-radius: 3px;
    background: #f8fafc;
    border: 1px solid #d1d5dc;
    cursor: pointer;
}

.checkbox:checked {
    background-color: #2b7fff;
    border-color: #2b7fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8.5l3 3 6-6' stroke='%23f8fafc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}

.text-sm {
    font-size: 14px;
    font-weight: 400;
    color: #030712;
}

/* Aviso de autenticação (flashdata warning) dentro do card */
.login-alert {
    width: 304px;
    padding: 10px 12px;
    border-radius: 10px;
    background-color: #fef3c7;
    border: 1px solid #fde68a;
    color: #92400e;
    font-size: 13px;
    font-weight: 500;
}

/* Slot do reCAPTCHA v2 real (o widget do Google tem 304x78,
   mesmo footprint do quadro do protótipo) */
.recaptcha-slot {
    width: 304px;
    min-height: 78px;
}

.grecaptcha-badge {
    display: none;
}

.btn-primary {
    background-color: #2b7fff;
    width: 304px;
    height: 36px;
    border-radius: 10px;
    color: #f8fafc;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-primary.disabled {
    opacity: 0.7;
    pointer-events: none;
}

.btn-spinner {
    display: inline-block;
    width: 13px;
    height: 13px;
    border: 2px solid rgba(248, 250, 252, 0.4);
    border-top-color: #f8fafc;
    border-radius: 50%;
    vertical-align: -2px;
    margin-right: 6px;
    animation: login-spin 0.6s linear infinite;
}

@keyframes login-spin {
    to {
        transform: rotate(360deg);
    }
}

/* =========================================================================
   Grid de integrações ao redor do form
   ========================================================================= */

.integrations-container {
    background-color: #f8fafc;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.4s ease;
}

.empty-square {
    width: 180px;
    height: 123px;
    border: 1px solid #71717b;
    position: relative;
    opacity: 0.2;
}

.empty-square-top-left,
.empty-square-top,
.empty-square-top-right,
.empty-square-bottom,
.empty-square-bottom-left,
.empty-square-bottom-right {
    width: 180px;
    height: 88px;
}

.empty-square-left,
.empty-square-right {
    width: 78px;
    height: 123px;
}

.empty-square-top-left {
    border-left: none;
    border-top: none;
}

.empty-square-top {
    border-top: none;
}

.empty-square-top-right {
    border-top: none;
    border-right: none;
}

.empty-square-left {
    border-left: none;
}

.empty-square-right {
    border-right: none;
}

.empty-square-bottom-left {
    border-left: none;
    border-bottom: none;
}

.empty-square-bottom {
    border-bottom: none;
}

.empty-square-bottom-right {
    border-right: none;
    border-bottom: none;
}

.filled-square {
    width: 180px;
    height: 123px;
    position: relative;
    background-color: #f4f4f5;
    border: 1px solid #d1d5dc;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.filled-square:is(.is-animating) .rastro-neon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

.filled-square:is(.is-animating) .rastro-neon::before {
    content: '';
    position: absolute;
    width: 400%;
    height: 400%;
    top: -150%;
    left: -150%;
    z-index: 2;
    background: conic-gradient(
        transparent 0deg,
        transparent 150deg,
        #51a2ff 180deg,
        #b8e6fe 210deg,
        transparent 240deg,
        transparent 360deg
    );
    filter: blur(35px);
    animation: rastro-neon 2s linear infinite;
}

.filled-square:is(.is-animating) .rastro-neon::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    background: #f4f4f5;
    z-index: 2;
}

@keyframes rastro-neon {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.filled-square:is(.is-animating) {
    background-color: #d4d4d8;
    border: 1px solid #9f9fa9;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.1);
    border: none;
}

.filled-square:is(.is-animating) .rastro-neon::after {
    background-color: #d4d4d8;
}

/* Linhas conectoras que crescem a partir do quadrado animado */
.left::after,
.right::after,
.top-left::after,
.bottom-left::after,
.top-left::after,
.top-right::after,
.bottom-left::after,
.bottom-right::after,
.top::after,
.bottom::after {
    content: '';
    position: absolute;
    background-color: #9f9fa9;
}

.left::after {
    top: 50%;
    transform: translateY(-50%);
    left: 100%;
    height: 1px;
    width: 0;
    transition: width 0s ease-out;
}

.right::after {
    top: 50%;
    transform: translateY(-50%);
    right: 100%;
    height: 1px;
    width: 0;
    transition: width 0s ease-out;
}

.top::after {
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    bottom: 100%;
    height: 0;
    width: 1px;
    transition: height 0s ease-out;
}

.bottom::after {
    left: 50%;
    transform: translateX(-50%);
    bottom: 100%;
    height: 0;
    width: 1px;
    transition: height 0s ease-out;
}

.top-left::after {
    left: 100%;
    bottom: 0;
    transform-origin: 0% 50%;
    transform: rotate(45deg);
    height: 1px;
    width: 0;
    transition: width 0s ease-out;
}

.top-right::after {
    right: 100%;
    bottom: 0;
    transform-origin: 100% 50%;
    transform: rotate(-45deg);
    height: 1px;
    width: 0;
    transition: width 0s ease-out;
}

.bottom-left::after {
    left: 100%;
    top: 0;
    transform-origin: 0% 0%;
    transform: rotate(-45deg);
    height: 1px;
    width: 0;
    transition: width 0s ease-out;
}

.bottom-right::after {
    right: 100%;
    top: 0;
    transform-origin: 100% 0%;
    transform: rotate(45deg);
    height: 1px;
    width: 0;
    transition: width 0s ease-out;
}

.left:is(.is-animating)::after,
.right:is(.is-animating)::after {
    width: 24px;
    transition: width 1s ease-in-out;
    transition-delay: 1ms;
}

.top:is(.is-animating)::after,
.bottom:is(.is-animating)::after {
    height: 24px;
    transition: height 1s ease-in-out;
    transition-delay: 1ms;
}

.top-left:is(.is-animating)::after,
.top-right:is(.is-animating)::after {
    width: 46px;
    transition: width 1s ease-in-out;
    transition-delay: 1ms;
}

.bottom-left:is(.is-animating)::after,
.bottom-right:is(.is-animating)::after {
    width: 46px;
    transition: width 1s ease-in-out;
    transition-delay: 1ms;
}

/* Logo do quadrado via CSS mask (SVGs em public/assets/svg/login/): o protótipo
   já forçava todos os paths a uma cor única (#9f9fa9 → #09090b animando), então
   recolorir via background-color é equivalente. --logo vem inline na view. */
.square-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
    height: 50%;
    background-color: #9f9fa9;
    -webkit-mask: var(--logo) no-repeat center / contain;
    mask: var(--logo) no-repeat center / contain;
    pointer-events: none;
    transition: background-color 0.4s ease;
    z-index: 3;
}

.filled-square:is(.is-animating) .square-logo {
    background-color: #09090b;
}

/* Telas muito estreitas: só encolhe o padding do card pro form caber inteiro */
@media (max-width: 400px) {
    .form {
        padding: 31px 24px;
    }
}
