:root {
        --auth-modern-ink: #172033;
        --auth-modern-muted: #657085;
        --auth-modern-line: #d9e1eb;
        --auth-modern-soft: #f6f8fb;
        --auth-modern-teal: #117f86;
        --auth-modern-gold: #c99a2e;
        --auth-modern-danger: #b42334;
        --auth-modern-success: #087443;
    }

    html,
    body {
        height: 100%;
        overflow: hidden;
        background: #eef2f6;
    }

    body.site-shell {
        min-height: 100%;
        height: 100%;
        overflow: hidden;
    }

    body > .site-main,
    body > .container {
        max-width: none !important;
        width: 100%;
        height: 100%;
        flex: 1 1 auto;
        padding: 0 !important;
        margin: 0;
        overflow: hidden;
    }

    body > .container > footer,
    .menu,
    .site-footer {
        display: none !important;
    }

    .auth-modern-shell {
        min-height: 100%;
        height: 100%;
        padding: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--auth-modern-ink);
        background:
            radial-gradient(circle at 15% 18%, rgba(17, 127, 134, .20), transparent 28%),
            radial-gradient(circle at 84% 14%, rgba(201, 154, 46, .18), transparent 24%),
            linear-gradient(135deg, #f7f9fc 0%, #e8edf4 56%, #f4efe7 100%);
        position: relative;
        overflow: auto;
    }

    .auth-modern-shell--compact {
        padding: 12px;
    }

    .auth-modern-shell::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image:
            linear-gradient(rgba(23, 32, 51, .045) 1px, transparent 1px),
            linear-gradient(90deg, rgba(23, 32, 51, .045) 1px, transparent 1px);
        background-size: 42px 42px;
        mask-image: linear-gradient(to bottom, rgba(0,0,0,.60), transparent 82%);
        pointer-events: none;
    }

    .auth-modern-frame {
        position: relative;
        width: min(960px, 100%);
        min-height: 0;
        max-height: 100%;
        display: grid;
        grid-template-columns: minmax(0, .88fr) minmax(340px, .68fr);
        overflow: hidden;
        border: 1px solid rgba(255,255,255,.74);
        border-radius: 8px;
        background: rgba(255,255,255,.78);
        box-shadow: 0 28px 80px rgba(21, 42, 64, .18);
        backdrop-filter: blur(18px);
    }

    .auth-modern-frame--compact {
        width: min(840px, 100%);
    }

    .auth-modern-hero {
        min-height: 100%;
        padding: 36px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        color: #fff;
        background:
            linear-gradient(145deg, rgba(11, 43, 50, .92), rgba(17, 127, 134, .70)),
            url("../images/rytasoft-icon.png") center 48% / min(52%, 380px) no-repeat,
            linear-gradient(145deg, #102f39, #117f86);
    }

    .auth-modern-brand {
        display: inline-flex;
        align-items: center;
        gap: 12px;
        width: fit-content;
        color: rgba(255,255,255,.94);
        font-size: 14px;
        font-weight: 800;
        letter-spacing: 0;
    }

    .auth-modern-mark {
        width: 38px;
        height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        background: rgba(255,255,255,.14);
        border: 1px solid rgba(255,255,255,.22);
    }

    .auth-modern-hero h2 {
        max-width: 420px;
        margin: 0 0 10px;
        font-size: clamp(28px, 4vw, 44px);
        line-height: 1.05;
        font-weight: 850;
        letter-spacing: 0;
    }

    .auth-modern-hero p {
        max-width: 420px;
        margin: 0;
        color: rgba(255,255,255,.78);
        font-size: 15px;
        line-height: 1.5;
    }

    .auth-modern-badges {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
        margin-top: 32px;
    }

    .auth-modern-badge {
        min-height: 74px;
        padding: 14px;
        border-radius: 8px;
        background: rgba(255,255,255,.12);
        border: 1px solid rgba(255,255,255,.18);
        color: rgba(255,255,255,.80);
        font-size: 12px;
        line-height: 1.35;
    }

    .auth-modern-badge i {
        display: block;
        margin-bottom: 8px;
        color: #f1c15d;
        font-size: 15px;
    }

    .auth-modern-panel {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 32px;
        background: rgba(255,255,255,.94);
    }

    .auth-modern-mobile-header {
        display: none;
        margin: -32px -32px 20px;
        padding: 20px 18px;
        color: #fff;
        background:
            linear-gradient(145deg, rgba(11,43,50,.94), rgba(17,127,134,.82)),
            url("../images/rytasoft-icon.png") right 16px center / 64px no-repeat;
    }

    .auth-modern-mobile-header--compact {
        padding: 16px 18px;
    }

    .auth-modern-mobile-header .auth-modern-brand {
        margin-bottom: 0;
    }

    .auth-modern-panel-header {
        margin-bottom: 20px;
    }

    .auth-modern-panel-header--compact {
        margin-bottom: 16px;
    }

    .auth-modern-eyebrow {
        margin: 0 0 10px;
        color: var(--auth-modern-teal);
        font-size: 12px;
        font-weight: 850;
        text-transform: uppercase;
        letter-spacing: .08em;
    }

    .auth-modern-panel h1 {
        margin: 0 0 6px;
        color: var(--auth-modern-ink);
        font-size: 26px;
        line-height: 1.15;
        font-weight: 850;
        letter-spacing: 0;
    }

    .auth-modern-panel p {
        color: var(--auth-modern-muted);
        line-height: 1.55;
    }

    .auth-modern-panel .form-group {
        margin-bottom: 16px;
    }

    .auth-modern-panel label:not(.form-check-label) {
        display: block;
        margin-bottom: 7px;
        color: #344054;
        font-size: 13px;
        font-weight: 750;
    }

    .auth-modern-panel .form-control {
        min-height: 44px;
        width: 100%;
        border: 1px solid #ccd6e3;
        border-radius: 8px;
        background: #fff;
        color: var(--auth-modern-ink);
        font-size: 15px;
        box-shadow: none;
        transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
    }

    .auth-modern-panel .form-control:focus {
        border-color: rgba(17, 127, 134, .72);
        box-shadow: 0 0 0 4px rgba(17, 127, 134, .13);
    }

    .auth-modern-panel .input-group .form-control {
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }

    .auth-modern-panel .input-group-text {
        min-width: 52px;
        justify-content: center;
        border: 1px solid #ccd6e3;
        border-left: 0;
        border-radius: 0 8px 8px 0;
        background: #f8fafc;
    }

    .auth-modern-panel .btn,
    .auth-modern-button {
        min-height: 44px;
        width: 100%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        border: 0;
        border-radius: 8px;
        background: linear-gradient(135deg, #0f6f76, #11939b 58%, #c99a2e);
        color: #fff !important;
        font-size: 15px;
        font-weight: 800;
        text-decoration: none !important;
        box-shadow: 0 10px 22px rgba(17, 127, 134, .18);
        transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
    }

    .auth-modern-panel .btn:hover,
    .auth-modern-button:hover {
        transform: translateY(-1px);
        filter: saturate(1.05);
        box-shadow: 0 18px 34px rgba(17, 127, 134, .28);
    }

    .auth-modern-link {
        color: #0f6f76;
        font-weight: 750;
        text-decoration: none;
    }

    .auth-modern-link:hover {
        color: #0a545a;
        text-decoration: underline;
    }

    .auth-modern-secondary-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        margin-top: 14px;
        color: #31505a;
        font-weight: 750;
        text-decoration: none;
    }

    .auth-modern-secondary-link:hover {
        color: #0f6f76;
        text-decoration: none;
    }

    .auth-modern-choice-grid {
        display: grid;
        gap: 10px;
        margin-bottom: 18px;
    }

    .auth-modern-choice,
    .auth-modern-panel .form-check {
        display: flex;
        align-items: center;
        gap: 10px;
        min-height: 44px;
        padding: 10px 12px;
        border: 1px solid #d6dee9;
        border-radius: 8px;
        background: #f8fafc;
        color: #344054;
        font-weight: 700;
    }

    .auth-modern-choice--inline {
        min-height: 0;
        padding: 0;
        border: 0;
        background: transparent;
        font-weight: 650;
    }

    .auth-modern-choice input,
    .auth-modern-panel .form-check-input {
        width: 18px;
        height: 18px;
        margin: 0;
        accent-color: var(--auth-modern-teal);
    }

    .auth-modern-panel .form-check-label {
        margin: 0;
        font-weight: 750;
    }

    .auth-modern-alert,
    .auth-modern-panel .validation-summary-errors,
    .auth-modern-panel .alert {
        margin-bottom: 18px;
        padding: 14px 16px;
        border-radius: 8px;
        border: 1px solid rgba(180, 35, 52, .22);
        background: #fff1f3;
        color: #912018;
        font-size: 14px;
    }

    .auth-modern-alert.success,
    .auth-modern-panel .alert-success {
        border-color: rgba(8, 116, 67, .22);
        background: #ecfdf3;
        color: #067647;
    }

    .auth-modern-alert.info {
        border-color: rgba(17, 127, 134, .20);
        background: #e9f8f9;
        color: #0d5f66;
    }

    .auth-modern-status-card {
        display: flex;
        gap: 14px;
        align-items: flex-start;
        padding: 16px;
        border-radius: 8px;
        background: #f8fafc;
        border: 1px solid #dce4ee;
    }

    .auth-modern-status-icon {
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        color: #fff;
        background: linear-gradient(135deg, #117f86, #c99a2e);
    }

    .auth-modern-status-card p {
        margin: 0;
    }

    .auth-modern-email-pill {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 12px 16px;
        margin: 16px 0;
        border-radius: 8px;
        background: #f3f7fa;
        border: 1px solid #d9e4ee;
        color: #20313f;
        font-weight: 800;
        overflow-wrap: anywhere;
    }

    .auth-modern-timer {
        color: #b42334;
        font-weight: 800;
    }

    .auth-modern-actions {
        margin-top: 22px;
    }

    .auth-modern-panel .verification-code-container {
        gap: 7px;
        margin: 22px 0;
    }

    .auth-modern-panel .verification-code-input {
        width: 48px;
        height: 58px;
        border-radius: 8px;
        border-color: #ccd6e3;
        font-size: 23px;
    }

    .auth-modern-panel .verification-code-input:focus,
    .auth-modern-panel .verification-code-input.filled {
        border-color: #117f86;
        background: #eefafa;
        box-shadow: 0 0 0 4px rgba(17, 127, 134, .12);
    }

    .auth-modern-panel .text-danger,
    .auth-modern-panel .field-validation-error {
        color: #b42334 !important;
        font-size: 13px;
    }

    .auth-modern-panel .text-success {
        color: #087443 !important;
    }

    .auth-modern-panel .form-text {
        font-size: 13px;
    }

    .auth-modern-footnote {
        margin-top: 18px;
        color: var(--auth-modern-muted);
        font-size: 13px;
        text-align: center;
    }

    .auth-modern-signout-frame {
        display: none;
    }

    @media (max-width: 900px) {
        .auth-modern-shell {
            align-items: stretch;
            justify-content: flex-start;
            padding: 0;
            overflow: auto;
            background:
                linear-gradient(180deg, rgba(11,43,50,.96) 0, rgba(17,127,134,.90) 88px, #eef2f6 88px);
        }

        .auth-modern-shell--compact {
            padding: 0;
        }

        .auth-modern-frame {
            width: 100%;
            min-height: 100%;
            max-height: none;
            grid-template-columns: 1fr;
            border: 0;
            border-radius: 0;
            box-shadow: none;
            background: transparent;
        }

        .auth-modern-frame--compact {
            min-height: 100%;
        }

        .auth-modern-hero {
            display: none;
        }

        .auth-modern-panel {
            justify-content: flex-start;
            min-height: 100%;
            padding: 14px 14px 16px;
            background: transparent;
        }

        .auth-modern-panel-inner {
            width: min(100%, 400px);
            margin: 0 auto;
            padding: 0;
        }

        .auth-modern-mobile-header {
            display: block;
            margin: -14px -14px 12px;
            padding: 12px 14px;
        }

        .auth-modern-mobile-header--compact {
            padding: 12px 14px;
        }

        .auth-modern-panel-card {
            padding: 16px 14px;
            border-radius: 8px;
            background: rgba(255,255,255,.96);
            box-shadow: 0 12px 28px rgba(21, 42, 64, .12);
        }

        .auth-modern-panel h1 {
            font-size: 22px;
        }

        .auth-modern-panel-header--compact {
            margin-bottom: 12px;
        }

        .auth-modern-panel .form-group {
            margin-bottom: 12px;
        }

        .auth-modern-version {
            margin-top: 8px;
        }
    }

    @media (max-width: 520px) {
        .auth-modern-panel .verification-code-container {
            gap: 5px;
        }

        .auth-modern-panel .verification-code-input {
            width: 38px;
            height: 52px;
            font-size: 20px;
        }

        .auth-modern-badges {
            grid-template-columns: 1fr;
        }
    }

.auth-modern-input-wrap {
            position: relative;
        }

        .auth-modern-input-wrap .form-control {
            padding-left: 44px;
            padding-right: 44px;
        }

        .auth-modern-input-icon {
            position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: #7a8797;
            z-index: 2;
        }

        .auth-modern-toggle-password {
            position: absolute;
            right: 10px;
            top: 50%;
            transform: translateY(-50%);
            width: 34px;
            height: 34px;
            border: 0;
            border-radius: 8px;
            background: transparent;
            color: #667085;
        }

        .auth-modern-toggle-password:hover {
            background: #eef4f6;
            color: #0f6f76;
        }

        .auth-modern-action-grid {
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
            gap: 10px;
            margin-top: 18px;
        }

        .auth-modern-secondary-button {
            min-height: 44px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            border: 1px solid #cfd9e5;
            border-radius: 8px;
            background: #f8fafc;
            color: #24434c;
            font-size: 14px;
            font-weight: 800;
            text-decoration: none !important;
        }

        .auth-modern-secondary-button--spaced {
            margin-top: 10px;
            width: 100%;
        }

        .auth-modern-secondary-button:hover {
            border-color: rgba(17, 127, 134, .42);
            background: #eefafa;
            color: #0f6f76;
        }

        .auth-modern-login-meta {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 14px;
            margin: 4px 0 14px;
        }

        .auth-modern-register-prompt {
            margin-top: 16px;
            padding: 13px 14px;
            border: 1px solid #dce4ee;
            border-radius: 8px;
            background: #f8fafc;
            color: #5b6675;
            font-size: 14px;
            text-align: center;
        }

        .auth-modern-version {
            margin-top: 10px;
            color: #7a8797;
            font-size: 11px;
            font-weight: 700;
            text-align: center;
        }

        .auth-modern-provider-section {
            margin-top: 24px;
        }

        .auth-modern-divider {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 14px;
            color: #6b7788;
            font-size: 12px;
            font-weight: 850;
            text-transform: uppercase;
            letter-spacing: .08em;
        }

        .auth-modern-divider::before,
        .auth-modern-divider::after {
            content: "";
            height: 1px;
            flex: 1;
            background: #dce4ee;
        }

        .auth-modern-provider-stack {
            display: grid;
            gap: 8px;
        }

        .auth-modern-provider-btn {
            min-height: 42px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            border: 1px solid #d6dee9;
            border-radius: 8px;
            background: #fff;
            color: #263746;
            font-weight: 800;
            text-decoration: none !important;
        }

        .auth-modern-provider-btn:hover {
            border-color: rgba(17, 127, 134, .38);
            background: #f4fbfb;
            color: #0f6f76;
        }

        .auth-modern-chooser {
            display: grid;
            gap: 8px;
        }

        .auth-modern-chooser-btn {
            display: flex;
            align-items: center;
            gap: 12px;
            width: 100%;
            min-height: 56px;
            padding: 12px 14px;
            border: 1px solid #d6dee9;
            border-radius: 8px;
            background: #fff;
            color: inherit;
            text-align: left;
            text-decoration: none !important;
            cursor: pointer;
            transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
        }

        .auth-modern-chooser-btn:hover,
        .auth-modern-chooser-btn:focus-visible {
            border-color: rgba(17, 127, 134, .45);
            background: #f4fbfb;
            box-shadow: 0 0 0 3px rgba(17, 127, 134, .10);
            outline: none;
        }

        .auth-modern-chooser-btn--muted {
            background: #f8fafc;
        }

        .auth-modern-chooser-icon {
            width: 36px;
            height: 36px;
            flex: 0 0 36px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 8px;
            background: #eef7f8;
            color: #0f6f76;
            font-size: 15px;
        }

        .auth-modern-chooser-text {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .auth-modern-chooser-text strong {
            color: var(--auth-modern-ink);
            font-size: 14px;
            font-weight: 800;
            line-height: 1.25;
        }

        .auth-modern-chooser-text small {
            color: var(--auth-modern-muted);
            font-size: 12px;
            line-height: 1.3;
        }

        .auth-modern-chooser-chevron {
            color: #98a2b3;
            font-size: 12px;
        }

        .auth-modern-back-link {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            margin: 0 0 12px;
            padding: 0;
            border: 0;
            background: transparent;
            color: #0f6f76;
            font-size: 13px;
            font-weight: 750;
            cursor: pointer;
        }

        .auth-modern-back-link:hover {
            color: #0a545a;
            text-decoration: underline;
        }

        .auth-modern-step-copy {
            font-size: 14px;
        }

        .auth-modern-form--compact .form-group {
            margin-bottom: 12px;
        }

        .auth-modern-form--compact .form-text {
            margin-top: 4px;
            font-size: 12px;
        }

        .auth-modern-form--compact .auth-modern-secondary-link {
            margin-top: 12px;
        }

        @media (max-width: 520px) {
            .auth-modern-action-grid {
                grid-template-columns: 1fr;
            }

            .auth-modern-login-meta {
                align-items: flex-start;
                flex-direction: column;
            }

            .auth-modern-chooser-btn {
                min-height: 52px;
                padding: 10px 12px;
            }
        }

.register-username-wrap {
            position: relative;
        }

        .register-username-wrap .form-control {
            padding-right: 46px;
        }

        .register-username-status {
            position: absolute;
            right: 14px;
            top: 50%;
            transform: translateY(-50%);
            width: 22px;
            height: 22px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            pointer-events: none;
        }

        #usernameHelp {
            margin-top: 7px;
            min-height: 0;
        }

        #usernameHelp:empty {
            display: none;
        }

.auth-provider-pill {
            display: inline-flex;
            align-items: center;
            gap: 9px;
            width: fit-content;
            margin-bottom: 18px;
            padding: 9px 12px;
            border-radius: 8px;
            background: rgba(255,255,255,.14);
            border: 1px solid rgba(255,255,255,.22);
            color: #fff;
            font-weight: 850;
        }

        .auth-provider-info {
            margin-bottom: 18px;
        }

.verification-code-container {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        margin: 20px 0;
    }

    .verification-code-input {
        width: 50px;
        height: 60px;
        text-align: center;
        font-size: 24px;
        font-weight: bold;
        font-family: 'Courier New', monospace;
        border: 2px solid #d1d5db;
        border-radius: 8px;
        transition: all 0.2s;
        background: #fff;
        color: #1f2937;
    }

    .verification-code-input:focus {
        outline: none;
        border-color: #5c4411;
        box-shadow: 0 0 0 3px rgba(92, 68, 17, 0.1);
    }

    .verification-code-input.filled {
        border-color: #5c4411;
        background: #fffbeb;
    }

    .verification-code-input.error {
        border-color: #dc2626;
        background: #fef2f2;
    }

    .verification-code-separator {
        font-size: 24px;
        font-weight: bold;
        color: #6b7280;
        margin: 0 4px;
    }

    .verification-code-error {
        color: #dc2626;
        font-size: 14px;
        text-align: center;
        margin-top: 10px;
        display: none;
    }

    .verification-code-error.show {
        display: block;
    }

.home-logo {
    width: 100px;
    height: 100px;
}

.is-hidden,
.auth-modern-validation-summary-hidden {
    display: none !important;
}

.auth-modern-timer.expired {
    color: #b42334;
}
