* {
    box-sizing: border-box;
}

:root {
    --uemasul-blue: #2b278b;
    --uemasul-blue-dark: #201d67;
    --uemasul-blue-soft: #efeffa;
    --uemasul-green: #078649;
    --uemasul-green-soft: #eaf7f0;
    --uemasul-gold: #e2a913;
    --uemasul-red: #d13b2d;

    --navy: var(--uemasul-blue);
    --green: var(--uemasul-green);
    --bg: #f6f7fb;
    --text: #1e2735;
    --muted: #697386;
    --border: #dde3ec;
    --danger: var(--uemasul-red);
    --danger-soft: #fff0ee;
}

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

body {
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    color: var(--text);
    background:
        radial-gradient(
            circle at 15% 10%,
            #e6f0f6 0,
            transparent 34%
        ),
        var(--bg);
}

.login-layout {
    min-height: 100vh;
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 28px;
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(340px, 460px);
    gap: 70px;
    align-items: center;
}

.login-brand {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.login-logo-tile {
    width: 108px;
    height: 118px;
    flex: 0 0 108px;
    display: grid;
    place-items: center;
    padding: 8px;
    border-radius: 22px;
    background: #fff;
    box-shadow:
        0 16px 36px
        rgba(32,29,103,.10);
}

.login-logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.eyebrow,
.step {
    color: var(--green);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
}

.login-brand h1 {
    max-width: 600px;
    margin: 8px 0 12px;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.04;
    letter-spacing: -.04em;
}

.login-brand p,
.login-card p {
    color: var(--muted);
    line-height: 1.55;
}

.login-card {
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: white;
    box-shadow:
        0 20px 50px
        rgba(15,23,42,.08);
}

.login-card h2 {
    margin: 10px 0 4px;
    font-size: 27px;
}

label {
    display: block;
    margin: 18px 0 7px;
    font-size: 13px;
    font-weight: 800;
}

input {
    width: 100%;
    min-height: 50px;
    padding: 11px 13px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font: inherit;
}

input:focus {
    outline: none;
    border-color: #4b7faa;
    box-shadow:
        0 0 0 4px
        rgba(75,127,170,.10);
}

button {
    width: 100%;
    min-height: 49px;
    margin-top: 20px;
    border: 0;
    border-radius: 10px;
    color: white;
    background: var(--navy);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

button:disabled {
    opacity: .55;
    cursor: wait;
}

.mensagem {
    margin-top: 15px;
    padding: 11px 12px;
    border-radius: 9px;
    color: var(--danger);
    background: var(--danger-soft);
    font-size: 13px;
}

.hidden {
    display: none;
}

.footer-note {
    margin-top: 20px;
    color: var(--muted);
    font-size: 11px;
}

@media (max-width: 800px) {
    .login-layout {
        grid-template-columns: 1fr;
        gap: 32px;
        max-width: 600px;
        padding: 30px 18px;
    }

    .login-brand h1 {
        font-size: 34px;
    }
}


body{
    background:
        radial-gradient(
            circle at 12% 12%,
            rgba(43,39,139,.09) 0,
            transparent 30%
        ),
        radial-gradient(
            circle at 88% 88%,
            rgba(7,134,73,.07) 0,
            transparent 28%
        ),
        var(--bg);
}

.login-card{
    border-top:4px solid var(--uemasul-blue);
}

input:focus{
    border-color:#6f6bb8;
    box-shadow:
        0 0 0 4px
        rgba(43,39,139,.10);
}

button{
    background:var(--uemasul-blue);
}

button:hover:not(:disabled){
    background:var(--uemasul-blue-dark);
}

.institutional-login-credit{
    line-height:1.45;
}

.institutional-login-credit strong{
    display:block;
    margin-top:3px;
    color:var(--uemasul-blue);
    font-size:10px;
}

@media(max-width:800px){
    .login-brand{
        align-items:center;
    }

    .login-logo-tile{
        width:82px;
        height:90px;
        flex-basis:82px;
    }
}
