.ajta-topbar {
    position: relative;
    z-index: 1000;
    border-bottom: 1px solid #dfe6ef;
    background: #fff;
    color: #061a33;
    font-family: inherit;
}

.ajta-topbar * {
    box-sizing: border-box;
}

.ajta-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: min(1180px, calc(100vw - 32px));
    min-height: 42px;
    margin: 0 auto;
    font-size: 13px;
    font-weight: 700;
}

.ajta-topbar-date {
    color: #536b89;
}

.ajta-topbar-links {
    display: inline-flex;
    align-items: center;
    gap: 0;
}

.ajta-topbar-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 28px;
    padding: 0 16px;
    border-right: 1px solid #d7e0eb;
    color: #111827;
    text-decoration: none !important;
}

.ajta-topbar-link:last-child {
    border-right: 0;
    padding-right: 0;
}

.ajta-link-logout:hover {
    color: #b42318 !important;
}

body.ajta-auth-template .entry-header,
body.ajta-auth-template .post-thumbnail,
body.ajta-auth-template #secondary,
body.ajta-auth-template .widget-area,
body.ajta-auth-template aside[role="complementary"] {
    display: none !important;
}

body.ajta-auth-template #primary,
body.ajta-auth-template .content-area,
body.ajta-auth-template #content,
body.ajta-auth-template .site-content,
body.ajta-auth-template #main.site-main {
    width: 100% !important;
    max-width: 100% !important;
}

body.ajta-auth-template #main.site-main {
    display: block !important;
}

body.ajta-auth-template #main > .main-content,
body.ajta-auth-template #main > .single_main-content,
body.ajta-auth-template #main > .page_main-content,
body.ajta-auth-template #main > .archive_main {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

.ajta-auth-page {
    min-height: 76vh;
    padding: 48px 20px;
    background: transparent;
    color: #061a33;
    font-family: inherit;
}

.ajta-auth-page * {
    box-sizing: border-box;
}

.ajta-auth-shell {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr);
    width: min(980px, 100%);
    margin: 0 auto;
    border: 1px solid #d9e1ec;
    background: #fff;
    box-shadow: 0 18px 48px rgba(15, 23, 42, .08);
}

.ajta-auth-visual {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 580px;
    padding: 42px 38px;
    background:
        linear-gradient(rgba(0, 20, 46, .84), rgba(0, 20, 46, .92)),
        repeating-linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,.06) 1px, transparent 1px, transparent 18px);
    color: #fff;
}

.ajta-auth-visual h1,
.ajta-register-card h1 {
    margin: 0 0 8px;
    font-size: 34px;
    line-height: 1.1;
    font-weight: 900;
}

.ajta-auth-visual p {
    max-width: 380px;
    margin: 0;
    color: rgba(255,255,255,.82);
    line-height: 1.6;
}

.ajta-auth-visual-footer {
    display: grid;
    gap: 4px;
    color: rgba(255,255,255,.72);
    font-size: 12px;
}

.ajta-auth-visual-footer strong {
    color: #70eadb;
    letter-spacing: .08em;
}

.ajta-auth-card,
.ajta-register-card {
    padding: 52px 48px;
    background: #fff;
}

.ajta-auth-card h2 {
    margin: 0;
    font-size: 24px;
}

.ajta-auth-subtitle,
.ajta-register-card > p {
    margin: 8px 0 28px;
    color: #64748b;
    font-size: 14px;
}

.ajta-auth-form {
    display: grid;
    gap: 18px;
}

.ajta-auth-form label {
    display: grid;
    gap: 8px;
    color: #1f2937;
    font-size: 13px;
    font-weight: 800;
}

.ajta-auth-form input[type="text"],
.ajta-auth-form input[type="email"],
.ajta-auth-form input[type="password"] {
    width: 100%;
    min-height: 44px;
    border: 1px solid #ccd6e4;
    border-radius: 0;
    background: #f8fafc;
    color: #061a33;
    font-size: 14px;
    padding: 0 13px;
}

.ajta-auth-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    color: #64748b;
    font-size: 12px;
}

.ajta-check {
    display: inline-flex !important;
    grid-template-columns: none !important;
    gap: 7px !important;
    align-items: center;
    font-weight: 600 !important;
}

.ajta-auth-row a,
.ajta-auth-switch a {
    color: #008a72;
    font-weight: 900;
    text-decoration: none !important;
}

.ajta-auth-form button {
    min-height: 48px;
    border: 0;
    background: #003b73;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: .04em;
}

.ajta-auth-switch {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #dfe6ef;
    color: #64748b;
    font-size: 14px;
    text-align: center;
}

.ajta-alert {
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid #d7e4f2;
    background: #eef7ff;
    color: #003b73;
    font-size: 13px;
}

.ajta-alert.error {
    border-color: #f3c5c1;
    background: #fff1f0;
    color: #b42318;
}

.ajta-register-card {
    width: min(620px, 100%);
    margin: 0 auto;
    border: 1px solid #d9e1ec;
    box-shadow: 0 18px 48px rgba(15, 23, 42, .08);
}

.ajta-register-card h1,
.ajta-register-card > p {
    text-align: center;
}

.ajta-role-picker {
    margin: 0;
    padding: 0;
    border: 0;
}

.ajta-role-picker legend {
    margin-bottom: 12px;
    color: #061a33;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ajta-role-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.ajta-role-grid label {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 72px;
    padding: 12px;
    border: 1px solid #cdd8e6;
    background: #fff;
    text-align: center;
    cursor: pointer;
}

.ajta-role-grid input {
    position: absolute;
    opacity: 0;
}

.ajta-role-grid label:has(input:checked) {
    border-color: #008a72;
    background: #7cf0d7;
}

.ajta-role-grid span {
    font-size: 12px;
    font-weight: 800;
}

.ajta-two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.ajta-auth-form small {
    color: #64748b;
    font-size: 11px;
    font-weight: 500;
}

@media (max-width: 760px) {
    .ajta-topbar-inner,
    .ajta-auth-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .ajta-topbar-links {
        flex-wrap: wrap;
    }

    .ajta-auth-shell {
        grid-template-columns: 1fr;
    }

    .ajta-auth-visual {
        min-height: 260px;
    }

    .ajta-auth-card,
    .ajta-register-card {
        padding: 34px 24px;
    }

    .ajta-role-grid,
    .ajta-two-col {
        grid-template-columns: 1fr;
    }
}
