:root {
    --pink: #BF4B8B;
    --pink-soft: rgba(191, 75, 139, 0.08);
    --violet: #682ABF;
    --deep-violet: #4811BF;
    --orange: #F26A1B;
    --orange-soft: rgba(242, 106, 27, 0.08);
    --white: #FDFDFD;
    --bg: #FDFDFD;
    --bg-alt: #F8F7FC;
    --ink: #4811BF;
    --muted: #682ABF;
    --line: rgba(72, 17, 191, 0.18);
    --dark-purple: #4811BF;
}

#homenagem{
    font-size: medium;
    margin-top: 20px;
    margin-bottom: -30px;
    color: rgba(255, 255, 255, 0);
}

* {
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    min-height: 100vh;
    margin: 0;
    display: block;
    color: var(--ink);
    background: var(--bg-alt);
}

.page-shell {
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    grid-template-columns: 58% 42%;
    padding-top: -10%;
}

.showcase {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 100vh;
    min-height: 100svh;
    padding: clamp(42px, 7vw, 92px);
    color: var(--white);
    background: linear-gradient(135deg, var(--deep-violet) 0%, var(--violet) 58%, var(--pink) 100%);
}

.showcase::before,
.showcase::after {
    display: none;
}

.showcase::after {
    box-shadow: -190px -60px 0 -85px var(--pink), 140px 45px 0 -55px #8b42dc;
}

.showcase::before {
    width: 360px;
    height: 360px;
    top: -210px;
    left: -170px;
    background: var(--pink);
}

.showcase::after {
    width: 430px;
    height: 180px;
    right: -150px;
    bottom: -70px;
    border-radius: 50%;
    background: rgba(242, 106, 27, 0.68);
}

.showcase-content {
    position: relative;
    z-index: 1;
    width: min(590px, 100%);
    text-align: center;
}

.eyebrow {
    margin: 0 0 20px;
    color: #f6c4df;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.showcase h1 {
    max-width: none;
    margin: 0;
    font-size: clamp(3rem, 5.4vw, 5.2rem);
    line-height: 0.9;
    font-weight: 1000;
    letter-spacing: 0;
    text-shadow: 0 9px 24px rgba(33, 21, 47, 0.24);
}

.showcase h1 span {
    color: #ffb46b;
}

.slogan {
    max-width: 410px;
    margin: 24px auto 34px;
    color: #f1e9fa;
    font-size: 1.12rem;
    line-height: 1.6;
}

.app-preview {
    position: relative;
    width: min(430px, 100%);
    height: 220px;
    margin: 30px auto 0;
    border: 1px solid rgba(253, 253, 253, 0.22);
    border-radius: 28px;
    background: rgba(253, 253, 253, 0.06);
    opacity: 0.96;
}

.app-preview::before,
.app-preview::after {
    position: absolute;
    content: "";
    pointer-events: none;
}

.app-preview::before {
    top: 30px;
    left: 30px;
    width: 158px;
    height: 158px;
    border: 1px solid rgba(253, 253, 253, 0.3);
    border-radius: 50%;
    background: rgba(191, 75, 139, 0.2);
}

.app-preview::after {
    top: 52px;
    right: 46px;
    width: 106px;
    height: 106px;
    border: 12px solid rgba(242, 106, 27, 0.82);
    border-left-color: transparent;
    border-radius: 24px;
    transform: rotate(18deg);
}

.preview-top {
    display: flex;
    position: relative;
    z-index: 2;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    color: #f8eefa;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--orange);
    box-shadow: 0 0 0 5px rgba(242, 106, 27, 0.16);
}

.preview-map {
    position: relative;
    height: 175px;
    margin: 0 22px;
    overflow: hidden;
    border: 1px solid rgba(253, 253, 253, 0.22);
    border-radius: 18px;
    background: linear-gradient(155deg, rgba(191, 75, 139, 0.28), rgba(72, 17, 191, 0.12));
    box-shadow: inset 0 -35px 0 rgba(72, 17, 191, 0.18);
}

.preview-map::before,
.preview-map::after {
    position: absolute;
    content: "";
    width: 140%;
    height: 2px;
    background: rgba(253, 253, 253, 0.38);
    transform: rotate(28deg);
}

.preview-map::before { 
    top: 48px; 
    left: -40px; 
}

.preview-map::after { 
    top: 112px; 
    left: -30px; 
    transform: rotate(-18deg);
}

.preview-map::before {
    pointer-events: none;
}

.preview-map .map-pin::after {
    position: absolute;
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--white);
    transform: translate(-1px, -1px);
}

.map-pin {
    position: absolute;
    top: 68px;
    left: 51%;
    width: 16px;
    height: 16px;
    border: 4px solid var(--white);
    border-radius: 50% 50% 50% 0;
    background: var(--orange);
    box-shadow: 0 4px 10px rgba(72, 17, 191, 0.35);
    transform: rotate(-45deg);
}

.preview-card {
    position: absolute;
    z-index: 2;
    right: 34px;
    bottom: 21px;
    max-width: 180px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid rgba(253, 253, 253, 0.22);
    border-radius: 10px;
    color: #eadcf8;
    background: rgba(72, 17, 191, 0.55);
    font-size: 0.7rem;
    line-height: 1.45;
}

.preview-card strong {
    display: block;
    margin-bottom: 3px;
    color: #ffb46b;
}

.preview-map,
.preview-card {
    display: none;
}

.status-dot::before,
.status-dot::after {
    position: absolute;
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #f6c4df;
}

.status-dot::before {
     margin: 42px 0 0 -190px; 
}

.status-dot::after {
     margin: 102px 0 0 -92px;
}

.preview-top::after {
    position: absolute;
    content: "";
    right: 22px;
    bottom: -126px;
    width: 58px;
    height: 58px;
    border: 1px solid rgba(253, 253, 253, 0.44);
    background: rgba(104, 42, 191, 0.28);
    transform: rotate(45deg);
}

.login-card {
    border: 1px solid rgba(253, 253, 253, 0.72);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: center;
    justify-self: center;
    width: calc(100% - 48px);
    height: 96%;
    padding: 54px clamp(30px, 4vw, 64px);
    border-radius: 24px;
    background: rgba(253, 253, 253, 0.76);
    box-shadow: 0 20px 48px rgba(72, 17, 191, 0.14);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.brand-mark {
    width: 220px;
    height: 220px;
    display: grid;
    place-items: center;
    align-self: center;
    margin: 0 auto 32px;
    border-radius: 50%;
    object-fit: contain;
    filter: drop-shadow(0 12px 20px rgba(72, 17, 191, 0.2));
}

.form-header h2 {
    margin: 0 0 10px;
    color: var(--deep-violet);
    font-size: 2.15rem;
}

.form-header p {
    margin: 0 0 30px;
    color: var(--muted);
    line-height: 1.55;
}

.input-group {
    margin-bottom: 19px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.84rem;
    font-weight: 700;
}

.field-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fff;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field-wrapper:focus-within {
    border-color: var(--violet);
    box-shadow: 0 0 0 4px rgba(104, 42, 191, 0.12);
}

.field-icon {
    width: 44px;
    color: var(--pink);
    text-align: center;
    font-size: 1.1rem;
}

.field-icon-right {
    width: 18px;
    height: 18px;
    margin-right: 14px;
    margin-left: auto;
    color: var(--pink);
    cursor: pointer;
    flex-shrink: 0;
    transition: color 160ms ease;
}

.field-icon-left {
    width: 18px;
    height: 18px;
    margin-left: 13px;
    margin-right: 13px;
    color: var(--pink);
    flex-shrink: 0;
}

.field-icon-right:hover {
    color: var(--violet);
}

.field-icon-right:hover {
    color: var(--violet);
}

.field-wrapper input {
    width: 100%;
    min-height: 50px;
    border: 0;
    outline: 0;
    color: var(--ink);
    background: transparent;
    font: inherit;
    padding-left: 14px;
}

input::placeholder { 
    color: #afa5b5;
}

.forgot-password {
    margin: -5px 0 16px;
    text-align: right;
    font-size: 0.78rem;
}

.row-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 3px 0 28px;
    color: var(--muted);
    font-size: 0.78rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

input[type="checkbox"] { 
    accent-color: var(--orange);
}

#TelaDocumentos{
    font-size: small;
    width: max-content;
}

a {
    color: var(--violet);
    font-weight: 700;
    text-decoration: none;
}

a:hover { 
    color: var(--orange);
}

.btn-login {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 11px;
    color: var(--white);
    background: var(--violet);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    transition: background 160ms ease, transform 160ms ease;
}

.btn-login:hover {
    background: var(--deep-violet);
    transform: translateY(-2px);
}

.back-link {
    margin-top: 28px;
    text-align: center;
    font-size: 0.8rem;
}

#volta_inicial:hover{
    color: var(--orange);
}

.back-link a { 
    color: var(--muted);
}

@media (max-width: 800px) {
    .page-shell { 
        grid-template-columns: 1fr; 
    }
    body { 
        background: #f8f7fc; 
    }
    .showcase { 
        min-height: 5rem; 
        padding: 48px 32px; 
    }

    .showcase p {
        display: none;
    }

    .login-card {
        width: 90%;
        margin: 2rem auto;
        min-height: 620px;
    }

    .form-header h2 {
        text-align: center;
    }
}

@media (max-width: 450px) {
    .showcase { 
        min-height: 5rem; 
        padding: 40px 24px; 
    }
    .showcase h1 { 
        font-size: 2.5rem; 
    }

    .form-header h2 {
        font-size: 1.6rem;
    }
    .app-preview { 
        width: min(292px, 100%); 
    }
    .brand-mark { 
        width: 180px; 
        height: 180px; 
    }
    .login-card { 
        padding: 40px 24px; 
    }
}

@media (max-width: 800px) {
    .page-shell { min-height: 100svh; }
    .login-card { height: auto; padding: 34px 24px; }
    .brand-mark { width: 150px; height: 150px; margin-bottom: 22px; }
    .row-actions { align-items: flex-start; flex-wrap: wrap; }
}

@media (max-width: 420px) {
    .showcase { padding: 30px 18px; }
    .login-card { width: 100%; margin: 1rem auto; padding: 28px 18px; border-radius: 16px; }
    .brand-mark { width: 120px; height: 120px; }
}
