/* ==================================================
   CHORMABANK — LOGIN
   Arquivo: login.css
================================================== */

:root {
    --background: #050508;
    --background-soft: #0b0b12;

    --surface: rgba(255, 255, 255, 0.035);
    --surface-strong: rgba(15, 15, 23, 0.92);

    --primary: #7c2cff;
    --primary-light: #a864ff;
    --primary-dark: #4e0eb8;

    --text: #ffffff;
    --text-soft: #b9b8c5;
    --text-muted: #767481;

    --border: rgba(255, 255, 255, 0.1);
    --border-purple: rgba(139, 70, 255, 0.38);

    --danger: #ff5d79;
}

/* ==================================================
   RESET
================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    min-height: 100%;
}

body {
    width: 100%;
    min-height: 100vh;

    overflow-x: hidden;
    overflow-y: auto;

    color: var(--text);

    background:
        radial-gradient(
            circle at 16% 18%,
            rgba(124, 44, 255, 0.16),
            transparent 27%
        ),
        radial-gradient(
            circle at 88% 85%,
            rgba(92, 23, 205, 0.13),
            transparent 30%
        ),
        linear-gradient(
            180deg,
            #050508 0%,
            #080811 55%,
            #040406 100%
        );

    font-family: "Poppins", sans-serif;

    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

button {
    border: 0;
}

img {
    max-width: 100%;
    display: block;
}

/* ==================================================
   CONTAINER
================================================== */

.container {
    width: 100%;
    min-height: 100vh;

    display: flex;
}

/* ==================================================
   LADO ESQUERDO
================================================== */

.left {
    width: 55%;
    min-height: 100vh;

    position: relative;

    overflow: hidden;

    background-image:
        linear-gradient(
            90deg,
            rgba(5, 5, 8, 0.92) 0%,
            rgba(5, 5, 8, 0.63) 58%,
            rgba(5, 5, 8, 0.38) 100%
        ),
        url("../img/background.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.left::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at 18% 25%,
            rgba(124, 44, 255, 0.23),
            transparent 30%
        ),
        linear-gradient(
            180deg,
            rgba(5, 5, 8, 0.05),
            rgba(5, 5, 8, 0.42)
        );

    pointer-events: none;
}

.left::after {
    content: "";

    width: 480px;
    height: 480px;

    position: absolute;
    left: -250px;
    bottom: -210px;

    border: 1px solid rgba(153, 91, 255, 0.22);
    border-radius: 50%;

    box-shadow:
        0 0 0 45px rgba(124, 44, 255, 0.035),
        0 0 0 90px rgba(124, 44, 255, 0.025);

    pointer-events: none;
}

.overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(5, 5, 8, 0.9) 0%,
            rgba(5, 5, 8, 0.54) 62%,
            rgba(5, 5, 8, 0.25) 100%
        );

    z-index: 1;
    pointer-events: none;
}

.content {
    position: relative;
    z-index: 2;

    min-height: 100vh;

    padding: 52px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* ==================================================
   LOGO
================================================== */

.logo {
   display:inline-flex;
    align-items:center;
    gap:16px;

    width:fit-content;

    text-decoration:none;
    color:inherit;

    cursor:pointer;
}
.logo-link {
    display: inline-flex;
    align-items: center;
    gap: 16px;

    width: fit-content;

    color: inherit;
    text-decoration: none;
}

.logo-image {
    width:60px;
    height:60px;
    flex-shrink:0;
}

.logo-icon {
    width: 60px;
    height: 60px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--border-purple);
    border-radius: 17px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            rgba(168, 100, 255, 0.28),
            rgba(78, 14, 184, 0.36)
        );

    box-shadow:
        0 0 30px rgba(124, 44, 255, 0.22);

    font-size: 21px;
    font-weight: 700;
}

.logo h2 {
      margin:0;
    white-space:nowrap;
    line-height:1;
}

.logo h2 strong {
    font-weight: 700;
}

/* ==================================================
   HERO
================================================== */

.hero {
    max-width: 650px;

    margin: 60px 0 45px;
}

.hero h1 {
    margin-bottom: 24px;

    font-size: clamp(50px, 5vw, 76px);
    line-height: 1.02;
    letter-spacing: -3px;
}

.hero h1::after {
    content: ".";

    color: var(--primary-light);
}

.hero p {
    width: 85%;

    color: var(--text-soft);

    font-size: 17px;
    line-height: 1.8;
}

/* ==================================================
   BENEFÍCIOS
================================================== */

.benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 14px;
}

.benefit {
    min-height: 165px;

    padding: 22px;

    border: 1px solid var(--border);
    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.055),
            rgba(255, 255, 255, 0.015)
        );

    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.28);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}

.benefit:hover {
    transform: translateY(-5px);

    border-color: var(--border-purple);

    background:
        linear-gradient(
            145deg,
            rgba(124, 44, 255, 0.12),
            rgba(255, 255, 255, 0.018)
        );

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.34),
        0 0 32px rgba(124, 44, 255, 0.12);
}

.benefit i {
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 18px;

    border: 1px solid rgba(168, 100, 255, 0.25);
    border-radius: 14px;

    color: var(--primary-light);
    background: rgba(124, 44, 255, 0.09);

    font-size: 20px;
}

.benefit h3 {
    margin-bottom: 8px;

    font-size: 15px;
}

.benefit p {
    color: var(--text-muted);

    font-size: 12px;
    line-height: 1.6;
}

/* ==================================================
   LADO DIREITO
================================================== */

.right {
    width: 45%;
    min-height: 100vh;

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 45px 30px;

    background:
        radial-gradient(
            circle at 70% 18%,
            rgba(124, 44, 255, 0.13),
            transparent 28%
        ),
        linear-gradient(
            180deg,
            #08080d 0%,
            #050508 100%
        );
}

.right::before {
    content: "";

    width: 390px;
    height: 390px;

    position: absolute;
    right: -210px;
    bottom: -180px;

    border: 1px solid rgba(145, 79, 255, 0.18);
    border-radius: 50%;

    box-shadow:
        0 0 0 42px rgba(124, 44, 255, 0.025),
        0 0 0 84px rgba(124, 44, 255, 0.018);

    pointer-events: none;
}

/* ==================================================
   CARD DE LOGIN
================================================== */

.login-card {
    width: min(455px, 100%);

    position: relative;
    z-index: 2;

    padding: 42px;

    border: 1px solid var(--border-purple);
    border-radius: 27px;

    background:
        radial-gradient(
            circle at 80% 0%,
            rgba(124, 44, 255, 0.1),
            transparent 32%
        ),
        linear-gradient(
            150deg,
            rgba(255, 255, 255, 0.048),
            rgba(255, 255, 255, 0.014)
        );

    box-shadow:
        0 35px 90px rgba(0, 0, 0, 0.55),
        0 0 50px rgba(124, 44, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);

    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.login-card::before {
    content: "";

    width: 75px;
    height: 3px;

    position: absolute;
    top: 0;
    left: 50%;

    transform: translateX(-50%);

    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--primary-light),
            transparent
        );

    box-shadow:
        0 0 18px rgba(168, 100, 255, 0.68);
}

.login-card h2 {
    margin-bottom: 8px;

    font-size: 34px;
    letter-spacing: -1.3px;
}

.login-card > p {
    margin-bottom: 34px;

    color: var(--text-soft);

    font-size: 14px;
}

/* ==================================================
   INPUTS
================================================== */

.input-group {
    margin-bottom: 22px;
}

.input-group label {
    display: block;

    margin-bottom: 9px;

    color: #ffffff;

    font-size: 13px;
    font-weight: 500;
}

.input-box {
    min-height: 58px;

    display: flex;
    align-items: center;

    padding: 0 17px;

    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 14px;

    background: rgba(5, 5, 9, 0.57);

    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.input-box:hover {
    border-color: rgba(255, 255, 255, 0.22);
}

.input-box:focus-within {
    border-color: var(--primary-light);

    background: rgba(10, 8, 17, 0.86);

    box-shadow:
        0 0 0 4px rgba(124, 44, 255, 0.09),
        0 0 24px rgba(124, 44, 255, 0.13);
}

.input-box > i {
    color: #8f8b9c;

    font-size: 16px;
}

.input-box input {
    width: 100%;
    height: 56px;

    padding: 0 14px;

    border: 0;
    outline: 0;

    color: #ffffff;
    background: transparent;

    font-size: 14px;
}

.input-box input::placeholder {
    color: #696675;
}

#mostrarSenha {
    flex-shrink: 0;

    color: #908b9b;
    background: transparent;

    cursor: pointer;

    font-size: 17px;

    transition: color 0.25s ease;
}

#mostrarSenha:hover {
    color: var(--primary-light);
}

/* ==================================================
   ESQUECI A SENHA
================================================== */

.forgot {
    display: flex;
    justify-content: flex-end;

    margin: -5px 0 27px;
}

.forgot a {
    color: var(--primary-light);

    font-size: 13px;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.forgot a:hover {
    color: #c29aff;
}

/* ==================================================
   BOTÃO ENTRAR
================================================== */

.btn-login {
    width: 100%;
    min-height: 58px;

    padding: 0 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 13px;

    border-radius: 13px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--primary-light),
            var(--primary),
            var(--primary-dark)
        );

    box-shadow:
        0 15px 36px rgba(124, 44, 255, 0.28);

    cursor: pointer;

    font-size: 15px;
    font-weight: 600;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        filter 0.25s ease;
}

.btn-login:hover {
    transform: translateY(-3px);

    filter: brightness(1.08);

    box-shadow:
        0 20px 48px rgba(124, 44, 255, 0.44);
}

.btn-login:disabled {
    opacity: 0.62;
    cursor: not-allowed;
    transform: none;
}

/* ==================================================
   DIVISOR
================================================== */

.divider {
    display: flex;
    align-items: center;

    margin: 28px 0;
}

.divider::before,
.divider::after {
    content: "";

    flex: 1;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.14)
        );
}

.divider::after {
    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.14),
            transparent
        );
}

.divider span {
    padding: 0 14px;

    color: var(--text-muted);

    font-size: 12px;
}

/* ==================================================
   BIOMETRIA
================================================== */

.btn-biometria {
    width: 100%;
    min-height: 57px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    border: 1px solid var(--border-purple);
    border-radius: 13px;

    color: #ffffff;

    background: rgba(124, 44, 255, 0.035);

    cursor: pointer;

    font-size: 14px;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.btn-biometria i {
    color: var(--primary-light);

    font-size: 19px;
}

.btn-biometria:hover {
    transform: translateY(-2px);

    border-color: rgba(168, 100, 255, 0.58);

    background: rgba(124, 44, 255, 0.09);

    box-shadow:
        0 15px 35px rgba(124, 44, 255, 0.12);
}

/* ==================================================
   CADASTRO
================================================== */

.register {
    margin-top: 30px;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 7px;

    text-align: center;
}

.register span,
.register {
    color: var(--text-muted);

    font-size: 13px;
}

.register a {
    color: var(--primary-light);

    font-size: 14px;
    font-weight: 600;

    transition:
        color 0.25s ease,
        letter-spacing 0.25s ease;
}

.register a:hover {
    color: #c29aff;
    letter-spacing: 0.2px;
}

/* ==================================================
   RESPONSIVIDADE — NOTEBOOK
================================================== */

@media (max-width: 1200px) {
    .content {
        padding: 38px;
    }

    .hero h1 {
        font-size: 54px;
    }

    .hero p {
        width: 95%;
    }

    .benefit {
        padding: 17px;
    }

    .login-card {
        padding: 35px;
    }
}

/* ==================================================
   RESPONSIVIDADE — TABLET
================================================== */

@media (max-width: 930px) {
    .container {
        flex-direction: column;
    }

    .left,
    .right {
        width: 100%;
        min-height: auto;
    }

    .left {
        background-position: center;
    }

    .content {
        min-height: 570px;

        padding: 32px;
    }

    .hero {
        margin: 60px 0 35px;
    }

    .hero h1 {
        font-size: 48px;
    }

    .benefits {
        grid-template-columns: repeat(3, 1fr);
    }

    .right {
        padding: 55px 20px;
    }

    .login-card {
        width: min(520px, 100%);
    }
}

/* ==================================================
   RESPONSIVIDADE — CELULAR
================================================== */

@media (max-width: 650px) {
    .left {
        min-height: auto;

        background-position: 63% center;
    }

    .content {
        min-height: auto;

        padding: 24px 18px 30px;
    }

    .logo-image,
    .logo-icon {
        width: 48px;
        height: 48px;
    }

    .logo h2 {
        font-size: 21px;
    }

    .hero {
        margin: 45px 0 30px;
    }

    .hero h1 {
        font-size: clamp(38px, 12vw, 49px);
        letter-spacing: -2px;
    }

    .hero p {
        width: 100%;

        font-size: 14px;
        line-height: 1.7;
    }

    .benefits {
        grid-template-columns: 1fr;
    }

    .benefit {
        min-height: auto;

        padding: 19px;
    }

    .right {
        padding: 35px 14px;
    }

    .login-card {
        padding: 27px 20px;

        border-radius: 22px;
    }

    .login-card h2 {
        font-size: 28px;
    }

    .input-box,
    .btn-login,
    .btn-biometria {
        min-height: 54px;
    }

    .input-box input {
        height: 52px;
    }
}

/* ==================================================
   CELULARES MENORES
================================================== */

@media (max-width: 380px) {
    .content {
        padding-inline: 15px;
    }

    .login-card {
        padding-inline: 16px;
    }

    .hero h1 {
        font-size: 36px;
    }
}

/* ==================================================
   ACESSIBILIDADE
================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}