@import url('/css/colors_and_type.css');

html[data-theme="dark"] .tx-logo-light,
html:not([data-theme="dark"]) .tx-logo-dark {
    display: none !important;
}

body {
    background:
        linear-gradient(180deg, color-mix(in oklch, var(--bg-base) 96%, var(--interactive-primary) 4%), var(--bg-base)) !important;
    color: var(--fg-1) !important;
}

.app-header {
    background: color-mix(in oklch, var(--bg-surface) 94%, transparent) !important;
    border-right: 1px solid var(--border-default) !important;
    box-shadow: var(--shadow-sm) !important;
}

.brand {
    color: var(--fg-1) !important;
    text-decoration: none !important;
}

.brand-logo {
    width: 132px;
    height: auto;
}

.sidebar-bottom {
    display: none !important;
}

.top-header {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.header-content {
    justify-content: center !important;
}

.tx-public-heading-logo {
    color: var(--fg-1) !important;
    text-align: center !important;
}

.tx-public-heading-logo img {
    width: 168px;
    height: auto;
    margin: 0 auto 8px;
}

.tx-public-heading-logo p,
.form-subtitle,
.login-subtitle,
.footer-copy,
.footer-links a {
    color: var(--fg-3) !important;
}

.form-title,
.welcome-text {
    color: var(--fg-1) !important;
}

.app-container,
.login-card,
.card {
    background: color-mix(in oklch, var(--bg-surface) 96%, transparent) !important;
    border: 1px solid var(--border-default) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-sm) !important;
}

.login-card {
    border-radius: var(--radius-xl) !important;
}

.main-content {
    gap: 18px !important;
}

.section-title {
    color: var(--fg-1) !important;
    letter-spacing: 0 !important;
}

label {
    color: var(--fg-2) !important;
}

input,
select,
textarea,
.form-input {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-default) !important;
    color: var(--fg-1) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: none !important;
}

input::placeholder,
textarea::placeholder,
.form-input::placeholder {
    color: var(--fg-disabled) !important;
}

input:focus,
select:focus,
textarea:focus,
.form-input:focus {
    border-color: var(--border-focus) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px color-mix(in oklch, var(--interactive-primary) 14%, transparent) !important;
}

input:invalid:not(:placeholder-shown),
select:invalid:not(:placeholder-shown) {
    border-color: var(--color-danger-500) !important;
}

.btn-primary,
.login-button,
.btn-validate {
    background: var(--interactive-primary) !important;
    color: var(--fg-inverse) !important;
    border-color: var(--interactive-primary) !important;
    border-radius: var(--radius-md) !important;
}

.btn-primary:hover,
.login-button:hover,
.btn-validate:hover {
    background: var(--interactive-primary-hover) !important;
}

.btn-outline,
.register-btn {
    background: var(--bg-surface) !important;
    color: var(--fg-1) !important;
    border: 1px solid var(--border-strong) !important;
    border-radius: var(--radius-md) !important;
}

.register-btn:hover,
.btn-outline:hover {
    background: var(--bg-surface-2) !important;
}

.logo img {
    width: 180px;
    height: auto;
}

.footer-logo {
    background: var(--bg-surface-2) !important;
    border: 1px solid var(--border-default);
}

.footer-logo img {
    width: 22px;
    height: 22px;
}

.app-footer {
    background: color-mix(in oklch, var(--bg-surface) 92%, transparent) !important;
    border-top: 1px solid var(--border-default) !important;
}

.background-fx .blob {
    opacity: 0.28 !important;
}

html[data-theme="dark"] .background-fx .blob {
    opacity: 0.16 !important;
}

.token-message.mensagem-sucesso,
.mensagem-sucesso {
    margin-top: 18px !important;
    padding: 12px 14px !important;
    border: 1px solid var(--status-success-border) !important;
    border-radius: var(--radius-md) !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
    background: var(--status-success-bg) !important;
    color: var(--status-success-text) !important;
    border-color: var(--status-success-border) !important;
}

.token-message.mensagem-erro,
.mensagem-erro,
.error-banner {
    margin-top: 18px !important;
    background: var(--status-danger-bg) !important;
    color: var(--status-danger-text) !important;
    border-color: var(--status-danger-border) !important;
}

.tx-account-closed {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 18px;
}

.tx-account-closed-card {
    width: min(480px, 100%);
    display: grid;
    gap: 14px;
    padding: 32px;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    background: color-mix(in oklch, var(--bg-surface) 96%, transparent);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.tx-account-closed-logo {
    width: 156px;
    height: auto;
    margin: 0 auto 4px;
}

.tx-account-closed-status {
    justify-self: center;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border: 1px solid var(--status-success-border);
    border-radius: var(--radius-full);
    background: var(--status-success-bg);
    color: var(--status-success-text);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
}

.tx-account-closed-card h1 {
    margin: 0;
    color: var(--fg-1);
    font-size: 28px;
    line-height: 1.15;
    letter-spacing: 0;
}

.tx-account-closed-card p {
    margin: 0;
    color: var(--fg-2);
    font-size: var(--text-sm);
    line-height: 1.6;
}

.tx-account-closed-action {
    justify-self: center;
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    text-decoration: none;
    font-weight: var(--weight-semibold);
}

@media (max-width: 768px) {
    .brand-logo {
        width: 118px;
    }

    .tx-public-heading-logo img {
        width: 146px;
    }

    .tx-account-closed-card {
        padding: 24px;
    }
}
