:root {
    --primary: #6d28d9;
    --primary-light: #8b5cf6;
    --primary-soft: #f1eaff;
    --text-main: #101828;
    --text-muted: #667085;
    --border: #d0d5dd;
    --danger: #dc2626;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text-main);
    font-family: Inter, Arial, Helvetica, sans-serif;
    background: #ffffff;
}

.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 0.9fr 1.3fr;
    overflow: hidden;
}

.brand-panel {
    position: relative;
    padding: 120px 80px 60px;
    background:
        radial-gradient(circle at 0 100%, #eee7ff 0, #eee7ff 34%, transparent 35%),
        linear-gradient(145deg, #ffffff 0%, #fbf9ff 58%, #efe7ff 100%);
    border-right: 1px solid #eee;
}

.brand-panel::before {
    content: "";
    position: absolute;
    width: 560px;
    height: 900px;
    border: 4px solid rgba(124, 58, 237, 0.08);
    border-radius: 50%;
    left: -260px;
    top: -100px;
}

.brand-content {
    position: relative;
    z-index: 1;
    max-width: 360px;
}

.brand-logo {
    display: block;
    width: 240px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.brand-content h1 {
    margin: 34px 0 4px;
    font-size: 50px;
    line-height: 1;
}

.brand-content h2 {
    margin: 0;
    color: var(--primary);
    font-size: 28px;
}

.brand-line {
    width: 44px;
    height: 3px;
    margin: 28px 0;
    background: var(--primary);
    border-radius: 999px;
}

.brand-content p {
    margin: 0;
    color: #344054;
    font-size: 18px;
    line-height: 1.45;
}

.brand-illustration {
    position: absolute;
    left: 70px;
    bottom: 70px;
    width: 420px;
    height: 240px;
}

.shelf {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 260px;
    height: 180px;
    border-left: 10px solid #7b738f;
    border-right: 10px solid #7b738f;
}

.shelf::before,
.shelf::after {
    content: "";
    position: absolute;
    left: -8px;
    right: -8px;
    height: 12px;
    background: #7b738f;
    border-radius: 4px;
}

.shelf::before {
    top: 48px;
}

.shelf::after {
    bottom: 58px;
}

.box {
    position: absolute;
    border-radius: 6px;
    background: linear-gradient(135deg, #9f7aea, #5b21b6);
    box-shadow: 0 16px 28px rgba(76, 29, 149, 0.22);
}

.box-one {
    width: 95px;
    height: 65px;
    left: 42px;
    bottom: 74px;
}

.box-two {
    width: 115px;
    height: 80px;
    left: 150px;
    bottom: 12px;
}

.box-three {
    width: 110px;
    height: 58px;
    left: 142px;
    bottom: 145px;
}

.clipboard {
    position: absolute;
    right: 10px;
    bottom: 16px;
    width: 120px;
    height: 150px;
    border: 8px solid #7c5bd6;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.75);
}

.clipboard::before {
    content: "";
    position: absolute;
    width: 54px;
    height: 26px;
    left: 50%;
    top: -28px;
    transform: translateX(-50%);
    border-radius: 10px 10px 0 0;
    background: #6d28d9;
}

.clipboard span {
    display: block;
    width: 62px;
    height: 8px;
    margin: 24px 0 0 36px;
    border-radius: 999px;
    background: #d8d2ef;
}

.login-panel {
    padding: 70px 40px 34px;
    display: grid;
    place-items: center;
    grid-template-rows: 1fr auto;
}

.login-card {
    width: min(100%, 720px);
    padding: 74px 86px;
    border: 1px solid #d9dee8;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.12);
}

.login-header {
    margin-bottom: 44px;
    text-align: center;
}

.login-header h2 {
    margin: 0 0 12px;
    font-size: 34px;
}

.login-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 20px;
}

.messages {
    margin-bottom: 18px;
}

.message {
    padding: 12px 14px;
    border-radius: 8px;
    color: var(--danger);
    background: #fff1f2;
    font-weight: 700;
}

.login-card label {
    display: block;
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 800;
}

.input-wrapper {
    height: 64px;
    margin-bottom: 26px;
    padding: 0 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12);
}

.input-wrapper svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.input-wrapper input {
    flex: 1;
    min-width: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    outline: 0;
    background: transparent;
    box-shadow: none;
    color: var(--text-main);
    font-size: 18px;
}

/* O contorno pertence ao wrapper; o input interno nunca deve criar outra caixa. */
body[data-ui-version="2.0"].login-view .login-card .input-wrapper > input:not([type="checkbox"]):not([type="radio"]) {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body[data-ui-version="2.0"] .login-card .input-wrapper > input:-webkit-autofill {
    -webkit-background-clip: text;
    -webkit-text-fill-color: var(--text-main);
    transition: background-color 9999s ease-out;
}

.input-wrapper input[type="password"]::-ms-reveal,
.input-wrapper input[type="password"]::-ms-clear {
    display: none;
    width: 0;
    height: 0;
}

.toggle-password {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.toggle-password svg {
    color: var(--text-muted);
}

.submit-button {
    width: 100%;
    height: 64px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-size: 19px;
    font-weight: 900;
}

.submit-button:hover {
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
}

.submit-button svg {
    width: 24px;
    height: 24px;
}

footer {
    margin-top: 28px;
    color: var(--text-muted);
    font-size: 15px;
    text-align: center;
}

@media (max-width: 1050px) {
    .login-page {
        grid-template-columns: 1fr;
    }

    .brand-panel {
        display: none;
    }

    .login-panel {
        padding: 30px 18px;
    }

    .login-card {
        padding: 42px 26px;
    }
}

.login-brand-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 0 auto 10px;
}

.login-links {
    margin: -20px 0 24px;
    text-align: right;
}

.login-links a,
.password-reset-link {
    color: var(--primary);
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
}

.login-links a:hover,
.password-reset-link:hover {
    text-decoration: underline;
}

.password-reset-card {
    width: min(560px, 100%);
}

.password-reset-copy {
    margin: 0 0 24px;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
}

.password-reset-actions {
    display: grid;
    gap: 18px;
    text-align: center;
}

.password-reset-errors,
.password-reset-errors ul {
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
    color: var(--danger);
    font-weight: 700;
}

.password-reset-help {
    margin: -14px 0 20px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
}

.login-logo {
    display: block;
    height: 38px;
    object-fit: contain;
}

.login-logo-stock {
    width: 356px;
    max-width: 100%;
    height: 96px;
}

/* Identidade compartilhada entre o login e as etapas de recuperação de senha. */
body[data-ui-version="2.0"].login-view--showcase {
    min-height: 100vh;
    min-height: 100dvh;
    color: #161731;
    background: #f7f6fb url("../img/login-background.png?v=20260825-3") center center / cover no-repeat fixed;
    font-family: Inter, "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
}

body[data-ui-version="2.0"].login-view--showcase .login-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    place-items: center;
    padding: 40px 20px;
    overflow: visible;
}

body[data-ui-version="2.0"].login-view--showcase .login-panel {
    width: 100%;
    min-height: 0;
    padding: 0;
    display: grid;
    grid-template-rows: auto;
    place-items: center;
    background: transparent;
}

body[data-ui-version="2.0"].login-view--showcase .login-card {
    width: min(552px, 100%);
    padding: 38px 41px 34px;
    border: 0;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(12, 7, 34, .22);
}

body[data-ui-version="2.0"].login-view--showcase .login-header {
    margin-bottom: 30px;
    text-align: center;
}

body[data-ui-version="2.0"].login-view--showcase .login-brand-row {
    margin: 0 auto 13px;
}

body[data-ui-version="2.0"].login-view--showcase .login-logo-stock {
    width: min(300px, 100%);
    height: 104px;
    object-fit: cover;
    object-position: center;
}

body[data-ui-version="2.0"].login-view--showcase .login-header h2 {
    margin: 0 0 8px;
    color: #161731;
    font-size: clamp(27px, 4.5vw, 34px);
    font-weight: 800;
    letter-spacing: -.055em;
    line-height: 1.2;
}

body[data-ui-version="2.0"].login-view--showcase .login-header p {
    margin: 0;
    color: #65708e;
    font-size: 19px;
    letter-spacing: -.035em;
    line-height: 1.45;
}

body[data-ui-version="2.0"].login-view--showcase .login-card > label,
body[data-ui-version="2.0"].login-view--showcase .login-card form > label {
    margin: 0 0 11px;
    color: #161731;
    font-size: 16px;
    font-weight: 700;
}

body[data-ui-version="2.0"].login-view--showcase .login-card .input-wrapper {
    height: 65px;
    margin-bottom: 22px;
    padding: 0 22px;
    gap: 17px;
    border: 1px solid #d7dcea;
    border-radius: 12px;
    background: #fff;
    box-shadow: none;
}

body[data-ui-version="2.0"].login-view--showcase .login-card .input-wrapper:focus-within {
    border-color: var(--stock-purple);
    box-shadow: 0 0 0 3px rgba(109, 45, 134, .11);
}

body[data-ui-version="2.0"].login-view--showcase .input-wrapper > svg {
    width: 23px;
    height: 23px;
    flex: 0 0 auto;
    color: var(--stock-purple);
    stroke-width: 2.2;
}

body[data-ui-version="2.0"].login-view--showcase .input-wrapper > input:not([type="checkbox"]):not([type="radio"]) {
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: #161731;
    background: transparent;
    box-shadow: none;
    font-size: 17px;
}

body[data-ui-version="2.0"].login-view--showcase .input-wrapper > input::placeholder {
    color: #b4bdd0;
    opacity: 1;
}

body[data-ui-version="2.0"].login-view--showcase .toggle-password {
    min-width: 27px;
    height: 34px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    box-shadow: none;
}

body[data-ui-version="2.0"].login-view--showcase .toggle-password svg {
    width: 25px;
    height: 25px;
    color: #606a83;
    stroke-width: 2.2;
}

body[data-ui-version="2.0"].login-view--showcase .login-links {
    margin: -7px 0 27px;
    text-align: right;
}

body[data-ui-version="2.0"].login-view--showcase .login-links a {
    color: var(--stock-purple);
    font-size: 15px;
    font-weight: 700;
}

body[data-ui-version="2.0"].login-view--showcase .password-reset-link {
    color: var(--stock-purple);
    font-weight: 700;
}

body[data-ui-version="2.0"].login-view--showcase .login-card .submit-button {
    position: relative;
    height: 61px;
    margin: 0;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(105deg, var(--stock-purple), var(--stock-purple-light));
    box-shadow: none;
    font-size: 19px;
    font-weight: 700;
    transition: background .18s ease, box-shadow .18s ease;
}

body[data-ui-version="2.0"].login-view--showcase .login-card .submit-button:hover {
    background: var(--stock-purple-hover);
    box-shadow: 0 9px 22px rgba(109, 45, 134, .2);
}

body[data-ui-version="2.0"].login-view--showcase .submit-button svg {
    position: absolute;
    top: 50%;
    right: 23px;
    width: 22px;
    height: 22px;
    transform: translateY(-50%);
}

@media (max-width: 560px) {
    body[data-ui-version="2.0"].login-view--showcase {
        background-attachment: scroll;
    }

    body[data-ui-version="2.0"].login-view--showcase .login-page {
        padding: 24px 15px;
    }

    body[data-ui-version="2.0"].login-view--showcase .login-card {
        padding: 30px 23px 27px;
        border-radius: 20px;
    }

    body[data-ui-version="2.0"].login-view--showcase .login-logo-stock {
        width: 255px;
        height: 91px;
    }

    body[data-ui-version="2.0"].login-view--showcase .login-header p {
        font-size: 16px;
    }

    body[data-ui-version="2.0"].login-view--showcase .login-card .input-wrapper {
        height: 59px;
        padding: 0 16px;
        gap: 12px;
    }
}

