* {
    box-sizing: border-box;
}

:root {
    --brand: #7700fd;
    --brand-rgb: 119, 0, 253;
    --button: #b254ff;
    --button-hover: #a341ee;

    --bg: #f5f6fa;
    --surface: #ffffff;
    --surface-2: #f7f7fa;
    --surface-3: #eeeef4;

    --text: #17151d;
    --text-2: #5f5b68;
    --text-3: #96919e;

    --border: #e6e4ea;
    --border-2: #dad7df;

    --success: #139b62;
    --shadow: 0 16px 50px rgba(25, 20, 35, 0.08);
}

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

html {
    background: var(--bg);
    color-scheme: light;
}

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: "Poppins", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

button {
    color: inherit;
}

a {
    color: inherit;
}

[hidden] {
    display: none !important;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    text-decoration: none;
}

.brand-logo {
    width: auto;
    max-width: 150px;
    height: 45px;
    display: block;
    object-fit: contain;
}

.login-copy .brand-link {
    display: flex;
    width: fit-content;
    margin-bottom: 38px;
}

/* ================================================================
   LOGIN
   ================================================================ */

.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at 12% 25%, rgba(var(--brand-rgb), .10), transparent 30%),
        radial-gradient(circle at 84% 75%, rgba(178, 84, 255, .10), transparent 27%),
        var(--bg);
}

.auth-main {
    flex: 1;
    display: grid;
    align-items: center;
    padding: 40px clamp(22px, 6vw, 92px) 70px;
}

.login-shell {
    width: min(1120px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 455px);
    gap: clamp(52px, 8vw, 110px);
    align-items: center;
    margin: 0 auto;
}

.eyebrow {
    color: var(--brand);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .15em;
}

.login-copy h1 {
    max-width: 700px;
    margin: 17px 0 20px;
    font-size: clamp(42px, 5.2vw, 62px);
    line-height: 1.02;
    letter-spacing: -.045em;
}

.login-copy > p {
    max-width: 570px;
    margin: 0;
    color: var(--text-2);
    font-size: 17px;
    line-height: 1.7;
}

.login-card {
    padding: 35px;
    border: 1px solid var(--border);
    border-radius: 23px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.login-card-heading {
    margin-bottom: 27px;
}

.login-card-heading h2 {
    margin: 0 0 7px;
    font-size: 25px;
    line-height: 1.2;
    letter-spacing: -.025em;
}

.login-card-heading p {
    margin: 0;
    color: var(--text-2);
    font-size: 14px;
}

.field {
    display: block;
    margin-bottom: 17px;
}

.field span {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
}

.field input {
    width: 100%;
    height: 50px;
    padding: 0 14px;
    border: 1px solid var(--border-2);
    border-radius: 12px;
    outline: none;
    background: var(--surface);
    color: var(--text);
}

.field input:focus {
    border-color: var(--button);
    box-shadow: 0 0 0 4px rgba(178, 84, 255, .12);
}

.field input::placeholder {
    color: var(--text-3);
}

.login-button {
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 12px;
    background: var(--button);
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(178, 84, 255, .23);
    transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}

.login-button:hover {
    background: var(--button-hover);
    box-shadow: 0 12px 28px rgba(178, 84, 255, .28);
}

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

.login-helper {
    margin: 19px 0 0;
    color: var(--text-3);
    font-size: 12px;
    text-align: center;
}

.auth-footer {
    padding: 22px;
    color: var(--text-3);
    font-size: 12px;
    text-align: center;
}

.auth-footer strong {
    color: var(--brand);
    font-weight: 700;
}

/* ================================================================
   ALERTA
   ================================================================ */

.alert {
    width: 100%;
    margin: 0 0 20px;
    border-radius: 11px;
    padding: 12px 14px;
    font-size: 12px;
    line-height: 1.5;
}

.alert-error {
    border: 1px solid rgba(220, 55, 88, .24);
    background: rgba(220, 55, 88, .10);
    color: #b92b49;
}

/* ================================================================
   RESPONSIVO
   ================================================================ */

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

    .login-copy {
        text-align: center;
    }

    .login-copy .brand-link {
        width: fit-content;
        margin: 0 auto 30px;
    }

    .brand-logo {
        max-width: 142px;
        height: 43px;
    }

    .login-copy > p {
        margin-inline: auto;
        font-size: 15px;
    }

    .login-card {
        width: min(460px, 100%);
        margin: 0 auto;
    }
}

.auth-footer a {
    color: inherit;
    text-decoration: none;
}

@media (max-width: 520px) {
    .auth-main {
        padding: 28px 15px 42px;
    }

    .login-copy h1 {
        font-size: 36px;
    }

    .login-card {
        padding: 26px 20px;
        border-radius: 18px;
    }

    .auth-footer {
        padding-inline: 16px;
    }
}
