html, body {
    background: var(--pv-bg);
    color: var(--pv-text);
    font-family: var(--pv-font);
    -webkit-font-smoothing: antialiased;
}

.auth-shell {
    position: relative;
    min-height: 100vh;
    color: var(--pv-text);
    background-color: var(--pv-bg);
    background-image:
        radial-gradient(900px 520px at 88% -10%, rgba(159, 225, 207, 0.16), transparent 62%),
        radial-gradient(600px 400px at 0% 110%, rgba(127, 180, 232, 0.08), transparent 60%),
        linear-gradient(var(--pv-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--pv-line) 1px, transparent 1px);
    background-size: auto, auto, 56px 56px, 56px 56px;
    background-position: 0 0, 0 0, -1px -1px, -1px -1px;
    isolation: isolate;
}

.auth-shell::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(11, 15, 23, 0.85) 100%);
}

.auth-shell > .row {
    margin: 0;
}

/* Navbar */
.auth-shell .navbar {
    padding: 1.5rem 0;
}

.auth-shell .navbar-brand-img {
    height: 40px;
    width: auto;
    max-height: none;
}

.auth-shell .navbar-toggler {
    color: var(--pv-text);
}

.auth-shell .navbar .btn {
    font-family: var(--pv-font);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.01em;
    border-radius: 999px;
    padding: 0.55rem 1.25rem;
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
    box-shadow: none !important;
    transform: none !important;
}

.auth-shell .navbar .btn-outline-primary {
    color: var(--pv-text);
    border: 1px solid var(--pv-line-strong);
    background: transparent;
}

.auth-shell .navbar .btn-outline-primary:hover,
.auth-shell .navbar .btn-outline-primary:focus {
    color: var(--pv-accent);
    border-color: var(--pv-accent);
    background: var(--pv-accent-soft);
}

.auth-shell .navbar .btn-primary {
    color: var(--pv-accent-ink);
    background: var(--pv-accent);
    border: 1px solid var(--pv-accent);
}

.auth-shell .navbar .btn-primary:hover,
.auth-shell .navbar .btn-primary:focus {
    background: var(--pv-accent-strong);
    border-color: var(--pv-accent-strong);
}

/* Card */
@keyframes spAuthEnter {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}

.auth-shell .signin-card,
.auth-shell .card.signin-card {
    background: var(--pv-surface);
    color: var(--pv-text);
    border: 1px solid var(--pv-line);
    border-radius: 14px;
    box-shadow: var(--pv-shadow);
    animation: spAuthEnter 380ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}

.auth-shell .signin-card .card-body,
.auth-shell .signin-card .card-body.login {
    padding: 2.25rem 2.25rem 2rem;
}

.auth-shell .signin-card .navbar-brand-img {
    height: 46px;
    width: auto;
}

.auth-shell .signin-card h1 {
    font-family: var(--pv-font-display);
    font-weight: 500;
    font-size: 1.35rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--pv-text);
    margin: 0 0 1.5rem;
}

.auth-shell .signin-card h1.et-text-sm,
.auth-shell .signin-card h1.et-font-medium {
    font-size: 1.15rem;
    font-weight: 500;
}

.auth-shell .signin-card .text-center.mb-5,
.auth-shell .signin-card .text-center.mb-8 {
    margin-bottom: 1.5rem !important;
}

/* Fields */
.auth-shell .form-group {
    margin-bottom: 0.9rem;
}

.auth-shell .form-control,
.auth-shell .form-control.form-control-sm,
.auth-shell .form-control.form-control-flush,
.auth-shell .et-signin-form-control,
.auth-shell select.form-control {
    height: 46px;
    padding: 0.6rem 0.95rem;
    font-family: var(--pv-font);
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--pv-text);
    background: var(--pv-bg);
    border: 1px solid var(--pv-line-strong);
    border-radius: var(--pv-radius-sm);
    box-shadow: none;
    transition: border-color 140ms ease, box-shadow 140ms ease;
}

.auth-shell .form-control::placeholder {
    color: var(--pv-text-3);
    opacity: 1;
}

.auth-shell .form-control:focus,
.auth-shell .signin-card .form-control:focus {
    color: var(--pv-text);
    background: var(--pv-bg);
    border-color: var(--pv-accent);
    box-shadow: 0 0 0 3px var(--pv-accent-ring);
    outline: none;
}

.auth-shell select.form-control {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23A3ACBE' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.95rem center;
    padding-right: 2.4rem;
}

.auth-shell select.form-control option {
    background: var(--pv-surface);
    color: var(--pv-text);
}

.auth-shell input:-webkit-autofill,
.auth-shell input:-webkit-autofill:hover,
.auth-shell input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--pv-text);
    box-shadow: 0 0 0 1000px var(--pv-bg) inset !important;
    caret-color: var(--pv-text);
    transition: background-color 9999s ease-out;
}

.auth-shell input:-webkit-autofill:focus {
    box-shadow: 0 0 0 1000px var(--pv-bg) inset, 0 0 0 3px var(--pv-accent-ring) !important;
}

.auth-shell .et-signin-label,
.auth-shell label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pv-text-2);
    margin-bottom: 0.4rem;
}

.auth-shell .form-group > div > .et-signin-label {
    display: inline-block;
}

.auth-shell .fe-help-circle {
    color: var(--pv-text-3);
    vertical-align: middle;
    cursor: help;
}

.auth-shell .auth-toggle-password {
    color: var(--pv-text-3);
    right: 14px;
}

.auth-shell .auth-toggle-password:hover,
.auth-shell .auth-toggle-password:focus {
    color: var(--pv-accent);
    outline-color: var(--pv-accent-ring);
}

.auth-shell .parsley-errors-list {
    list-style: none;
    padding: 0.35rem 0 0;
    margin: 0;
    font-size: 0.8rem;
    color: var(--pv-danger);
}

.auth-shell .form-control.parsley-error {
    border-color: var(--pv-danger);
}

/* Phone input */
.auth-shell .iti {
    width: 100%;
}

.auth-shell .iti__flag-container:hover .iti__selected-flag {
    background: transparent;
}

.auth-shell .iti__selected-flag {
    padding-left: 0.95rem;
}

.auth-shell .iti__arrow {
    border-top-color: var(--pv-text-2);
}

.auth-shell .iti__arrow--up {
    border-bottom-color: var(--pv-text-2);
}

.auth-shell .iti__country-list {
    background: var(--pv-surface-2);
    color: var(--pv-text);
    border: 1px solid var(--pv-line-strong);
    border-radius: var(--pv-radius-sm);
    box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.8);
}

.auth-shell .iti__country.iti__highlight {
    background: var(--pv-accent-soft);
}

.auth-shell .iti__divider {
    border-bottom-color: var(--pv-line);
}

.auth-shell .iti__dial-code {
    color: var(--pv-text-3);
}

.auth-shell .iti--allow-dropdown input,
.auth-shell .iti--allow-dropdown input[type=text] {
    padding-left: 3.4rem;
}

/* Buttons */
.auth-shell .signin-card .btn-primary,
.auth-shell .signin-card input[type=submit].btn-primary {
    font-family: var(--pv-font);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    height: 46px;
    padding: 0 1.5rem;
    color: var(--pv-accent-ink);
    background: var(--pv-accent);
    border: 1px solid var(--pv-accent);
    border-radius: var(--pv-radius-sm);
    box-shadow: none !important;
    transform: none !important;
    transition: background-color 140ms ease, border-color 140ms ease, opacity 140ms ease;
}

.auth-shell .signin-card .btn-primary.btn-pill {
    border-radius: 999px;
}

.auth-shell .signin-card .btn-primary:hover,
.auth-shell .signin-card .btn-primary:focus {
    color: var(--pv-accent-ink);
    background: var(--pv-accent-strong);
    border-color: var(--pv-accent-strong);
}

.auth-shell .signin-card .btn-primary:disabled,
.auth-shell .signin-card .btn-primary.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.auth-shell .signin-card .btn-outline-primary {
    font-family: var(--pv-font);
    font-weight: 600;
    color: var(--pv-text);
    border: 1px solid var(--pv-line-strong);
    background: transparent;
    border-radius: var(--pv-radius-sm);
    box-shadow: none !important;
    transform: none !important;
}

.auth-shell .signin-card .btn-outline-primary:hover,
.auth-shell .signin-card .btn-outline-primary:focus {
    color: var(--pv-accent);
    border-color: var(--pv-accent);
    background: var(--pv-accent-soft);
}

.auth-shell .signin-card .btn.btn-sm,
.auth-shell .signin-card .btn.btn-xs {
    height: 46px;
    line-height: 1;
}

/* Links, dividers */
.auth-shell .signin-card a,
.auth-shell .signin-card a.text-muted,
.auth-shell .auth-forgot-link {
    color: var(--pv-text-2) !important;
    font-size: 0.85rem;
}

.auth-shell .signin-card a:hover,
.auth-shell .signin-card a:focus,
.auth-shell .auth-forgot-link:hover,
.auth-shell .auth-forgot-link:focus {
    color: var(--pv-accent) !important;
    text-decoration: none;
}

.auth-shell .signin-card a.btn {
    font-size: 0.95rem;
}

/* Register steps */
.auth-shell .register-step1 .signin-card,
.auth-shell .register-step4 .signin-card,
.auth-shell .register-step5 .signin-card {
    max-width: none;
}

.auth-shell .signin-card .c-checkbox span {
    border-color: var(--pv-line-strong);
    background: var(--pv-bg);
}

.auth-shell .signin-card .c-checkbox input[type=checkbox]:checked + span {
    background: var(--pv-accent);
    border-color: var(--pv-accent);
    color: var(--pv-accent-ink);
}

.auth-shell .signin-card .c-checkbox em {
    color: var(--pv-text-2);
}

.auth-shell .register-step4 h1,
.auth-shell .register-step4 .pv-title-2 {
    font-family: var(--pv-font-display);
    font-weight: 500;
    font-size: 2rem;
    color: var(--pv-text);
}

.auth-shell .register-subtitle,
.auth-shell .register-complete-account {
    color: var(--pv-text-2);
}

.auth-shell .pincode-input-container input.form-control-sm {
    height: 46px;
    font-family: var(--pv-font-mono);
    font-size: 1.25rem;
}

/* Flash messages (notify.js) */
.uk-notify-message {
    background: var(--pv-surface-2) !important;
    color: var(--pv-text) !important;
    border: 1px solid var(--pv-line-strong);
    border-radius: var(--pv-radius-sm);
    font-family: var(--pv-font);
}

.uk-notify-message.alert-success,
.uk-notify-message.uk-notify-message-success {
    border-color: var(--pv-success);
}

.uk-notify-message.alert-danger,
.uk-notify-message.uk-notify-message-danger,
.uk-notify-message.uk-notify-message-error {
    border-color: var(--pv-danger);
}

/* Tooltips */
.tooltip .tooltip-inner {
    background: var(--pv-surface-3);
    color: var(--pv-text);
    font-family: var(--pv-font);
    border: 1px solid var(--pv-line-strong);
}

@media (max-width: 575.98px) {
    .auth-shell .navbar {
        padding: 1rem 0;
    }

    .auth-shell .signin-card,
    .auth-shell .card.signin-card {
        max-width: calc(100% - 1.5rem);
    }

    .auth-shell .signin-card .card-body,
    .auth-shell .signin-card .card-body.login {
        padding: 1.75rem 1.35rem 1.5rem;
    }
}

.auth-shell .signin-card a.btn-primary,
.auth-shell .signin-card a.btn-primary:hover,
.auth-shell .signin-card a.btn-primary:focus {
    color: var(--pv-accent-ink) !important;
}

.auth-shell .register-check {
    width: 88px;
    height: 88px;
    margin: 1.25rem auto;
    color: var(--pv-accent);
    display: block;
}

.uk-notify .uk-notify-message,
.uk-notify .uk-notify-message.alert.alert-normal {
    border-left: 3px solid var(--pv-accent);
    box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.8);
    font-size: 0.9rem;
}

.uk-notify .uk-notify-message .fa-check,
.uk-notify .uk-notify-message .text-info {
    color: var(--pv-accent) !important;
}

.uk-notify .uk-notify-message .fa-ban,
.uk-notify .uk-notify-message .text-danger {
    color: var(--pv-danger) !important;
}

.auth-shell .signin-card a.btn,
.auth-shell .signin-card .btn.btn-sm,
.auth-shell .signin-card .btn.btn-xs {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.auth-shell .signin-card .btn-block {
    display: flex;
    width: 100%;
}
