:root {
    --mdt-navy: #0d2344;
    --mdt-navy-dark: #07162c;
    --mdt-blue: #1268e8;
    --mdt-blue-hover: #0c57c7;
    --mdt-text: #15243b;
    --mdt-muted: #667085;
    --mdt-border: #d9e1ec;
    --mdt-bg: #f4f7fb;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

body.mdt-auth {
    min-height: 100vh;
    overflow: hidden;
    margin: 0;
    background: var(--mdt-bg);
    color: var(--mdt-text);
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

.mdt-auth-layout {
    display: flex;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.mdt-auth-hero {
    position: relative;
    z-index: 1;
    height: 100vh;
    aspect-ratio: 2 / 3;
    flex: 0 0 auto;
    overflow: hidden;
    background-image: url('../images/logon.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-color: #07162c;
}

.mdt-auth-hero::before,
.mdt-auth-hero::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.10);
}

.mdt-auth-hero::before {
    width: 520px;
    height: 520px;
    left: -180px;
    bottom: -170px;
}

.mdt-auth-hero::after {
    width: 380px;
    height: 380px;
    right: -130px;
    top: -90px;
}

.mdt-hero-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, transparent, black 25%, black 75%, transparent);
}

.mdt-hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    color: #fff;
}

.mdt-hero-bottom {
    margin-top: auto;
    padding-bottom: 3rem;
}

.mdt-hero-bottom p {
    max-width: 520px;
    margin-bottom: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    line-height: 1.6;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.mdt-hero-logo {
    width: 210px;
    height: auto;
    display: block;
    margin-bottom: 2rem;
    filter: drop-shadow(0 14px 25px rgba(0,0,0,.20));
}

.mdt-hero-content h1 {
    font-size: clamp(2.5rem, 4vw, 4.6rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -.04em;
    margin-bottom: 1.25rem;
}

.mdt-hero-content p {
    max-width: 520px;
    color: rgba(255,255,255,.78);
    font-size: 1.15rem;
    line-height: 1.7;
}

.mdt-hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: 2rem;
}

.mdt-hero-features span {
    padding: .55rem .85rem;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(8px);
    font-size: .88rem;
}

.mdt-auth-panel {
    position: relative;
    z-index: 2;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: #fff;
    overflow-y: auto;
}

.mdt-auth-card {
    position: relative;
    z-index: 3;
    width: min(470px, 100%);
    padding: 1rem 0;
}

.mdt-login-logo {
    width: 165px;
    max-height: 200px;
    object-fit: contain;
}

.mdt-title {
    margin: 0 0 .5rem;
    color: var(--mdt-navy);
    font-size: clamp(1.8rem, 4vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -.035em;
}

.mdt-subtitle {
    margin: 0;
    color: var(--mdt-muted);
    line-height: 1.6;
}

.form-label {
    color: #26364d;
    font-size: .93rem;
    font-weight: 650;
}

.form-control {
    border-color: var(--mdt-border);
    border-radius: .85rem;
    min-height: 54px;
    color: var(--mdt-text);
    box-shadow: none !important;
}

.form-control:focus {
    border-color: var(--mdt-blue);
    box-shadow: 0 0 0 .22rem rgba(18,104,232,.10) !important;
}

.input-group .form-control {
    border-radius: .85rem 0 0 .85rem;
}

.mdt-password-toggle {
    border-color: var(--mdt-border);
    border-radius: 0 .85rem .85rem 0;
    color: var(--mdt-muted);
    font-size: .86rem;
    min-width: 76px;
}

.mdt-primary-btn {
    min-height: 54px;
    border: 0;
    border-radius: .85rem;
    background: linear-gradient(135deg, var(--mdt-blue), #0756c5);
    font-weight: 700;
    box-shadow: 0 12px 25px rgba(18,104,232,.18);
}

.mdt-primary-btn:hover,
.mdt-primary-btn:focus {
    background: linear-gradient(135deg, var(--mdt-blue-hover), #064bac);
}

.mdt-link,
.mdt-back-link {
    color: var(--mdt-blue);
    text-decoration: none;
}

.mdt-link:hover,
.mdt-back-link:hover {
    text-decoration: underline;
}

.mdt-back-link {
    display: inline-block;
    margin-bottom: 1.25rem;
    font-weight: 650;
}

.mdt-divider {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin: 1.5rem 0;
    color: #98a2b3;
    font-size: .85rem;
}

.mdt-divider::before,
.mdt-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--mdt-border);
}

.mdt-security-box {
    padding: 1rem 1.1rem;
    border: 1px solid #d8e7fb;
    border-radius: .9rem;
    background: #f2f7fe;
    color: #36516f;
    font-size: .9rem;
}

.mdt-security-box strong {
    display: block;
    color: var(--mdt-navy);
    margin-bottom: .25rem;
}

.mdt-auth-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .55rem;
    margin-top: 2.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid #edf0f4;
    color: #98a2b3;
    font-size: .8rem;
}

.mdt-auth-footer a {
    color: #667085;
    text-decoration: none;
}

.mdt-auth-footer a:hover {
    color: var(--mdt-blue);
}

.validation-summary-valid {
    display: none;
}

.field-validation-valid {
    display: none;
}

@media (max-width: 991.98px) {
    .mdt-auth-panel {
        min-height: 100vh;
        padding: 2rem 1.25rem;
    }

    .mdt-auth-card {
        padding: 1rem;
    }

    .mdt-login-logo {
        width: 145px;
    }
}

@media (max-width: 575.98px) {
    .mdt-auth-panel {
        align-items: flex-start;
        padding-top: 1.5rem;
    }

    .mdt-auth-card {
        padding: 0;
    }

    .mdt-login-logo {
        width: 125px;
    }

    .mdt-title {
        font-size: 1.75rem;
    }

    .form-control,
    .mdt-primary-btn {
        min-height: 50px;
    }
}

/* Campos com ícone
-------------------------------------------------- */

.mdt-input-icon {
    position: relative;
}

.mdt-input-icon > .bi {
    position: absolute;
    z-index: 5;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #70839d;
    font-size: 1.15rem;
    pointer-events: none;
}

.mdt-input-icon .form-control,
.mdt-input-icon .form-select {
    padding-left: 3rem;
}

.mdt-password-field .form-control {
    padding-right: 3.25rem;
}


/* Botão mostrar/ocultar senha
-------------------------------------------------- */

.mdt-eye-button {
    position: absolute;
    z-index: 6;
    right: .85rem;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #70839d;
    cursor: pointer;
}

    .mdt-eye-button:hover {
        color: var(--mdt-blue);
        background: rgba(18, 104, 232, .07);
    }

    .mdt-eye-button:focus-visible {
        outline: 2px solid var(--mdt-blue);
        outline-offset: 2px;
    }


/* Botão entrar
-------------------------------------------------- */

.mdt-primary-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
}

    .mdt-primary-btn .bi {
        font-size: 1.25rem;
    }


/* Google
-------------------------------------------------- */

.mdt-google-btn {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .8rem;
    border: 1px solid var(--mdt-border);
    border-radius: .85rem;
    background: #fff;
    color: var(--mdt-text);
    font-weight: 650;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

    .mdt-google-btn:hover {
        background: #f8fafc;
        border-color: #bcc8d8;
        color: var(--mdt-text);
    }

    .mdt-google-btn:focus-visible {
        outline: 2px solid var(--mdt-blue);
        outline-offset: 2px;
    }

.mdt-google-icon {
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
}