html,
body {
    height: 100%;
    font-family: 'DM Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ── Fundo com textura geométrica ── */
.sp__lg__page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #EEF1F6;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(13, 124, 219, .10) 0%, transparent 55%),
        radial-gradient(circle at 80% 80%, rgba(26, 58, 92, .12) 0%, transparent 55%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231a3a5c' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    position: relative;
}

/* ── Card principal ── */
.sp__lg__card {
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    border-radius: 2px;
    box-shadow:
        0 0 0 1px rgba(26, 58, 92, .08),
        0 8px 24px rgba(26, 58, 92, .10),
        0 32px 64px rgba(26, 58, 92, .08);
    overflow: hidden;
    animation: sp__lg__rise 500ms cubic-bezier(.22, .68, 0, 1.2) both;
}

/* Tira de cor no topo do card */
.sp__lg__card-top-bar {
    height: 4px;
    background: linear-gradient(90deg, #1A3A5C 0%, #0D7CDB 60%, #1A3A5C 100%);
}

/* Corpo do card */
.sp__lg__card-body {
    padding: 40px 44px 36px;
}

/* ── Brand ── */
.sp__lg__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.sp__lg__brand-icon {
    width: 42px;
    height: 42px;
    background: #1A3A5C;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(26, 58, 92, .25);
}

.sp__lg__brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: #1A3A5C;
    letter-spacing: -.3px;
    line-height: 1;
}

.sp__lg__brand-tagline {
    font-size: 10px;
    font-weight: 500;
    color: #8A97A8;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-top: 3px;
}

/* ── Cabeçalho do form ── */
.sp__lg__form-header {
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #EDF0F5;
}

.sp__lg__form-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: #1C2B40;
    letter-spacing: -.4px;
    line-height: 1.2;
}

.sp__lg__form-subtitle {
    font-size: 13.5px;
    color: #8A97A8;
    margin-top: 6px;
    line-height: 1.55;
    font-weight: 400;
}

/* ── Formulário ── */
.sp__lg__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Field */
.sp__lg__field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.sp__lg__label {
    font-size: 11px;
    font-weight: 600;
    color: #5A6A7E;
    text-transform: uppercase;
    letter-spacing: .9px;
}

/* Input wrapper */
.sp__lg__input-wrap {
    position: relative;
}

.sp__lg__input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #B0BAC8;
    font-size: 13px;
    pointer-events: none;
    transition: color 200ms ease;
}

.sp__lg__input {
    width: 100%;
    height: 46px;
    border: 1.5px solid #DDE3EC;
    border-radius: 2px;
    background: #F8FAFC;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: #1C2B40;
    padding: 0 44px 0 42px;
    outline: none;
    transition: border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.sp__lg__input::placeholder {
    color: #B0BAC8;
    font-style: italic;
    font-size: 13px;
}

.sp__lg__input:hover:not(:focus) {
    border-color: #B0BAC8;
}

.sp__lg__input:focus {
    border-color: #0D7CDB;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(13, 124, 219, .12);
}

.sp__lg__input-wrap:focus-within .sp__lg__input-icon {
    color: #0D7CDB;
}

/* Toggle senha */
.sp__lg__input-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #B0BAC8;
    font-size: 13px;
    cursor: pointer;
    transition: color 180ms ease;
    padding: 4px;
}

.sp__lg__input-toggle:hover {
    color: #5A6A7E;
}

/* Error */
.sp__lg__field--error .sp__lg__input {
    border-color: #C0392B;
    background: #FDF5F5;
}

.sp__lg__field--error .sp__lg__input:focus {
    box-shadow: 0 0 0 3px rgba(192, 57, 43, .10);
}

.sp__lg__field--error .sp__lg__input-icon {
    color: #C0392B;
}

.sp__lg__field-error-msg {
    display: none;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #C0392B;
    font-weight: 500;
}

.sp__lg__field--error .sp__lg__field-error-msg {
    display: flex;
}

/* Linha opções */
.sp__lg__options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: -4px;
}

.sp__lg__checkbox-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.sp__lg__checkbox-wrap input[type="checkbox"] {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 1.5px solid #DDE3EC;
    border-radius: 2px;
    background: #F8FAFC;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: border-color 180ms ease, background 180ms ease;
}

.sp__lg__checkbox-wrap input[type="checkbox"]:checked {
    background: #1A3A5C;
    border-color: #1A3A5C;
}

.sp__lg__checkbox-wrap input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 4.5px;
    width: 4px;
    height: 8px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.sp__lg__checkbox-label {
    font-size: 13px;
    color: #5A6A7E;
    user-select: none;
}

.sp__lg__link {
    font-size: 13px;
    color: #0D7CDB;
    font-weight: 500;
    cursor: pointer;
    transition: color 180ms ease;
    text-decoration: none;
}

.sp__lg__link:hover {
    color: #0A6BBF;
    text-decoration: underline;
}

/* Alerta global */
.sp__lg__alert {
    display: none;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: #FDF0EF;
    border: 1px solid rgba(192, 57, 43, .2);
    border-left: 3px solid #C0392B;
    border-radius: 2px;
    font-size: 13px;
    color: #C0392B;
    line-height: 1.5;
    animation: sp__lg__fadeIn 220ms ease;
}

.sp__lg__alert--active {
    display: flex;
}

.sp__lg__alert i {
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Botão principal */
.sp__lg__btn-primary {
    height: 48px;
    background: #1A3A5C;
    color: #fff;
    border: none;
    border-radius: 2px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: .2px;
    transition: background 200ms ease, box-shadow 200ms ease, transform 80ms ease;
    position: relative;
    overflow: hidden;
    margin-top: 4px;
}

.sp__lg__btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, .06) 0%, transparent 60%);
}

.sp__lg__btn-primary:hover {
    background: #14304f;
    box-shadow: 0 6px 20px rgba(26, 58, 92, .30);
}

.sp__lg__btn-primary:active {
    transform: translateY(1px);
}

.sp__lg__btn-primary--loading {
    pointer-events: none;
    background: #2a5480;
}

.sp__lg__btn-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, .25);
    border-top-color: #fff;
    border-radius: 50%;
    animation: sp__lg__spin 650ms linear infinite;
}

.sp__lg__btn-primary--loading .sp__lg__btn-spinner {
    display: block;
}

.sp__lg__btn-primary--loading .sp__lg__btn-label {
    opacity: .75;
}

.sp__lg__btn-primary--loading .sp__lg__btn-arrow {
    display: none;
}

/* ── Rodapé ── */
.sp__lg__card-footer {
    padding: 18px 24px 20px;
    background: #F8FAFC;
    border-top: 1px solid #EDF0F5;
    text-align: center;
}

.sp__lg__footer-note {
    font-size: 12px;
    color: #8A97A8;
    line-height: 1.6;
}

.sp__lg__footer-note a {
    color: #0D7CDB;
    font-weight: 500;
    text-decoration: none;
}

.sp__lg__footer-note a:hover {
    text-decoration: underline;
}

/* Copyright fora do card */
.sp__lg__copyright {
    margin-top: 22px;
    font-size: 11.5px;
    color: #A0AABB;
    text-align: center;
    font-family: 'DM Mono', monospace;
    letter-spacing: .2px;
}

/* ── Animações ── */
@keyframes sp__lg__spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes sp__lg__rise {
    from {
        opacity: 0;
        transform: translateY(18px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes sp__lg__fadeIn {
    from {
        opacity: 0;
        transform: translateY(-3px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}