body.task-login {
    --panel-bg: #f4f8fb;
    --surface: #ffffff;
    --surface-muted: #f0f7fb;
    --surface-border: #d9e4ef;
    --surface-shadow: 0 24px 48px rgba(15, 23, 42, 0.08);
    --text-primary: #0f172a;
    --text-secondary: #5b6b7c;
    --brand: #0ea5e9;
    --brand-hover: #0284c7;
    --focus-ring: rgba(14, 165, 233, 0.22);
    --radius-lg: 20px;
    --radius-sm: 10px;
    background: radial-gradient(1200px 600px at -10% -10%, #dbeafe, transparent 65%),
        radial-gradient(800px 500px at 120% -20%, #e0f2fe, transparent 60%),
        var(--panel-bg);
    color: var(--text-primary);
}

body.task-login #layout-content.modern-auth {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 2vw, 2.2rem);
    overflow: auto;
}

body.task-login .auth-shell {
    width: min(1220px, 100%);
    display: grid;
    grid-template-columns: minmax(360px, 2fr) minmax(420px, 3fr);
    align-items: stretch;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--surface-shadow);
    overflow: hidden;
}

body.task-login .auth-panel,
body.task-login .auth-showcase {
    border: 0;
    box-shadow: none;
}

body.task-login .auth-panel {
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
    padding: clamp(1.5rem, 2.2vw, 2.75rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

body.task-login .auth-header {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    margin: 0 0 1rem;
}

body.task-login .auth-header #logo,
body.task-login .auth-header #logo-white {
    position: static !important;
    top: auto !important;
    height: 150px !important;
    max-height: 150px !important;
    width: auto !important;
    max-width: min(340px, 100%) !important;
    object-fit: contain;
    margin: 0 auto;
    background: transparent;
}

body.task-login .auth-header #logo {
    display: block !important;
}

body.task-login .auth-header #logo-white {
    display: none !important;
}

body.task-login .auth-theme-toggle {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    border-radius: 999px;
    min-height: 1.75rem;
    height: auto;
    padding: 0 0.65rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1;
    flex-shrink: 0;
    box-shadow: none;
    cursor: pointer;
}

body.task-login .auth-theme-toggle:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

body.task-login .auth-theme-toggle .theme-icon::before {
    content: '\2600';
    font-size: 0.85rem;
}

body.task-login .auth-theme-toggle.is-dark .theme-icon::before {
    content: '\263D';
}

body.task-login .auth-copy h2 {
    margin: 0 0 0.45rem;
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    font-weight: 700;
}

body.task-login .auth-copy p,
body.task-login .auth-copy-lead {
    margin: 0 0 1.25rem;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.45;
    max-width: 28rem;
}

body.task-login .auth-lang-switch {
    display: inline-flex;
    align-items: stretch;
    margin: 0;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    background: #f8fafc;
    flex-shrink: 0;
}

body.task-login .auth-lang-btn {
    min-width: 2.1rem;
    padding: 0.3rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #64748b;
    text-decoration: none;
    text-align: center;
    line-height: 1.2;
    border: 0;
    background: transparent;
}

body.task-login .auth-lang-btn + .auth-lang-btn {
    border-left: 1px solid #e2e8f0;
}

body.task-login .auth-lang-btn:hover {
    color: var(--brand);
    background: rgba(14, 165, 233, 0.08);
}

body.task-login .auth-lang-btn.is-active {
    color: #fff;
    background: var(--brand);
}

body.task-login .auth-lang-btn.is-active:hover {
    color: #fff;
    background: var(--brand-hover);
}

body.task-login .auth-bottom-stack {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: max-content;
    max-width: calc(100vw - 2rem);
    overflow: visible;
}

body.task-login .auth-capslock-hint {
    position: static;
    width: 100%;
    min-width: min(360px, calc(100vw - 2rem));
    margin: 0;
    padding: 0.55rem 0.85rem;
    font-size: 0.85rem;
    line-height: 1.35;
    text-align: center;
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
    pointer-events: none;
}

html.dark-mode body.task-login .auth-capslock-hint {
    color: #fde68a;
    background: rgba(120, 53, 15, 0.95);
    border-color: rgba(251, 191, 36, 0.45);
}

body.task-login .auth-capslock-hint[hidden] {
    display: none !important;
}

body.task-login #login-form {
    width: 100%;
    margin: 0;
    position: static;
    max-width: 100%;
}

body.task-login #login-form table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.75rem;
}

body.task-login #login-form td {
    padding: 0;
    vertical-align: middle;
}

body.task-login #login-form .row:not(.form-check) td.title {
    display: none;
}

body.task-login #login-form .row.form-check td.title {
    width: auto;
    padding-right: 0.65rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    white-space: nowrap;
}

body.task-login #login-form .row.form-check td:not(.title) {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

body.task-login #login-form .row.form-check .custom-switch {
    margin: 0;
}

body.task-login #login-form .row.form-check .custom-control-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

body.task-login #login-form .input-group {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
}

body.task-login #login-form .input-group .input-group-prepend,
body.task-login #login-form .input-group .input-group-append {
    display: flex;
}

body.task-login #login-form .input-group .input-group-prepend:empty,
body.task-login #login-form .input-group .input-group-append:empty {
    display: none !important;
}

body.task-login #login-form .input-group .input-group-text {
    min-width: 2.9rem;
    justify-content: center;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    border-right: 0;
    color: #94a3b8;
    background-color: #f8fafc;
}

body.task-login #login-form .input-group .form-control {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

body.task-login #login-form .form-control {
    height: 2.85rem;
    border-radius: var(--radius-sm);
    border-color: #c9d4e7;
    background-color: #fff;
}

body.task-login #login-form input.form-control,
body.task-login #login-form select.form-control,
body.task-login #login-form textarea.form-control {
    font-size: 14px;
}

body.task-login #login-form .form-control:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 0.2rem var(--focus-ring);
}

body.task-login #login-form .button.mainaction,
body.task-login #login-form button[type='submit'] {
    width: 100%;
    min-height: 2.85rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    background: var(--brand);
    border-color: var(--brand);
}

body.task-login #login-form .button.mainaction:hover,
body.task-login #login-form button[type='submit']:hover {
    background: var(--brand-hover);
    border-color: var(--brand-hover);
}

body.task-login #login-footer {
    margin-top: 1rem;
    margin-bottom: 0;
    color: var(--text-secondary);
    font-size: 0.83rem;
}

body.task-login #login-form .formbuttons {
    margin: 0;
    padding: 0.35rem 0 0;
}

body.task-login .auth-utility-row {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.45rem 0.75rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
    overflow: visible;
}

body.task-login .auth-links {
    display: flex;
    gap: 0.4rem;
}

body.task-login .auth-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.75rem;
    padding: 0 0.65rem;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

body.task-login .auth-link-short {
    display: none;
}

body.task-login .auth-link-btn:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

body.task-login .auth-ip-box {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #f8fafc;
    padding: 0.2rem 0.3rem 0.2rem 0.5rem;
}

body.task-login .auth-ip-box.is-popover-pinned {
    border-color: var(--brand);
    box-shadow: 0 0 0 2px var(--focus-ring);
}

body.task-login .auth-ip-value {
    display: inline-block;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.75rem;
    line-height: 1;
    color: var(--text-primary);
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
}

body.task-login .auth-ip-value.is-ipv6 {
    max-width: 168px;
    font-size: 0.68rem;
    letter-spacing: -0.02em;
}

body.task-login .auth-ip-value:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
    border-radius: 4px;
}

body.task-login .auth-ip-popover {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 0.55rem);
    transform: translateX(-50%);
    z-index: 1100;
    width: min(360px, calc(100vw - 1.25rem));
    min-width: min(300px, calc(100vw - 1.25rem));
    padding: 0.9rem 1.1rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #0f172a;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
    text-align: left;
    pointer-events: auto;
}

body.task-login .auth-ip-popover::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    border: 7px solid transparent;
    border-top-color: #fff;
}

body.task-login .auth-ip-popover-title {
    margin: 0 0 0.55rem;
    font-size: 0.88rem;
    font-weight: 700;
    text-align: center;
    color: #0f172a;
}

body.task-login .auth-ip-popover-row {
    display: grid;
    grid-template-columns: 5.75rem minmax(0, 1fr);
    gap: 0.4rem 0.5rem;
    margin: 0.35rem 0;
    font-size: 0.78rem;
    line-height: 1.35;
    align-items: baseline;
}

body.task-login .auth-ip-popover-label {
    color: #64748b;
    font-weight: 500;
    white-space: nowrap;
}

body.task-login .auth-ip-popover-row strong,
body.task-login .auth-ip-popover-row span:not(.auth-ip-popover-label) {
    color: #0f172a;
    font-weight: 600;
    overflow-wrap: anywhere;
}

body.task-login .auth-ip-popover-row #ip-detail-ip {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.72rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: -0.02em;
    overflow-wrap: normal;
    word-break: keep-all;
}

body.task-login .auth-ip-detail-copy {
    cursor: pointer;
    border-radius: 4px;
    transition: color 0.15s ease, background-color 0.15s ease;
}

body.task-login .auth-ip-detail-copy:hover,
body.task-login .auth-ip-detail-copy:focus-visible {
    color: var(--brand);
    background: rgba(14, 165, 233, 0.08);
    outline: none;
}

body.task-login .auth-ip-detail-copy.is-copied {
    color: #059669;
    background: rgba(16, 185, 129, 0.12);
}

body.task-login .auth-ip-copy-toast {
    position: relative;
    left: auto;
    bottom: auto;
    z-index: 5;
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 0.55rem;
    padding: 0.4rem 0.65rem;
    border-radius: 8px;
    background: #059669;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    white-space: nowrap;
    box-shadow: none;
    opacity: 0;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 0;
    overflow: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, max-height 0.18s ease, margin 0.18s ease, padding 0.18s ease;
}

body.task-login .auth-ip-copy-toast.is-visible {
    opacity: 1;
    max-height: 3rem;
    margin-bottom: 0.55rem;
    padding: 0.4rem 0.65rem;
}

/* Fallback: popover kapalıysa IP kutusu üstünde */
body.task-login .auth-ip-box > .auth-ip-copy-toast {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 0.45rem);
    width: auto;
    transform: translateX(-50%) translateY(4px);
    border-radius: 999px;
    max-height: none;
    margin: 0;
    padding: 0.35rem 0.65rem;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
}

body.task-login .auth-ip-box > .auth-ip-copy-toast.is-visible {
    transform: translateX(-50%) translateY(0);
}

body.task-login .auth-status-box {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #f8fafc;
    padding: 0.35rem;
    min-width: 1.75rem;
    min-height: 1.75rem;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Yer kazanmak: metin yok, sadece durum noktası */
body.task-login .auth-status-head,
body.task-login .auth-status-text {
    display: none !important;
}

body.task-login .auth-status-box.is-clickable {
    cursor: pointer;
}

body.task-login .auth-status-box.is-clickable:hover,
body.task-login .auth-status-box.is-clickable:focus-visible {
    border-color: var(--brand);
    box-shadow: 0 0 0 2px var(--focus-ring);
    outline: none;
}

body.task-login .auth-status-box.is-popover-open {
    border-color: var(--brand);
}

body.task-login .auth-status-popover {
    position: absolute;
    right: 0;
    bottom: calc(100% + 0.55rem);
    z-index: 1100;
    width: min(320px, calc(100vw - 1.25rem));
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #0f172a;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
    white-space: normal;
    text-align: left;
    cursor: default;
}

body.task-login .auth-status-popover-title {
    margin: 0 0 0.5rem;
    font-size: 0.88rem;
    font-weight: 700;
    text-align: center;
}

body.task-login .auth-status-popover-row {
    display: flex;
    gap: 0.35rem;
    margin: 0.2rem 0;
    font-size: 0.78rem;
    line-height: 1.35;
}

body.task-login .auth-status-popover-label {
    color: #64748b;
    flex-shrink: 0;
}

body.task-login .auth-status-popover-detail {
    margin: 0.55rem 0 0;
    font-size: 0.78rem;
    line-height: 1.45;
    color: #334155;
}

body.task-login .auth-status-popover-link {
    display: inline-flex;
    margin-top: 0.7rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--brand);
    text-decoration: none;
}

body.task-login .auth-status-popover-link:hover {
    text-decoration: underline;
}

body.task-login .auth-status-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: #94a3b8;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.25);
}

body.task-login .auth-status-head {
    margin: 0;
    font-size: 0.7rem;
    line-height: 1;
    font-weight: 500;
    color: #64748b;
}

body.task-login .auth-status-text {
    font-size: 0.75rem;
    line-height: 1;
    font-weight: 600;
    color: var(--text-primary);
}

body.task-login .auth-status-box.is-green .auth-status-dot {
    background: #16a34a;
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.22);
}

body.task-login .auth-status-box.is-green .auth-status-text {
    color: #15803d;
}

body.task-login .auth-status-box.is-orange .auth-status-dot {
    background: #ea580c;
    box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.22);
}

body.task-login .auth-status-box.is-orange .auth-status-text {
    color: #c2410c;
}

body.task-login .auth-status-box.is-red .auth-status-dot {
    background: #dc2626;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.22);
}

body.task-login .auth-status-box.is-red .auth-status-text {
    color: #b91c1c;
}

body.task-login .auth-status-box.is-loading .auth-status-dot {
    background: #94a3b8;
    animation: auth-status-pulse 1.1s ease-in-out infinite;
}

body.task-login .auth-status-box.is-unknown .auth-status-dot {
    background: #64748b;
}

@keyframes auth-status-pulse {
    0%,
    100% {
        opacity: 0.45;
        transform: scale(0.92);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}

body.task-login .auth-ip-head {
    margin: 0;
    font-size: 0.7rem;
    line-height: 1;
    font-weight: 500;
    color: #64748b;
}

body.task-login .auth-ip-copy {
    width: 1.45rem;
    height: 1.45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
    color: #64748b;
    line-height: 0;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

body.task-login .auth-ip-copy svg {
    width: 11px;
    height: 11px;
    fill: currentColor;
    opacity: 0.8;
}

body.task-login .auth-ip-copy:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

body.task-login .auth-ip-copy.is-copied {
    color: #10b981;
    border-color: #6ee7b7;
    background: #d1fae5;
}

body.task-login .auth-showcase {
    position: relative;
    background: #e8f4fc;
    display: block;
    min-height: 100%;
    align-self: stretch;
    overflow: hidden;
}

body.task-login .auth-showcase-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    background: #dbeafe;
}

body.task-login .auth-showcase-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    opacity: 1;
    transition: opacity 0.45s ease;
}

body.task-login .auth-showcase-media img.is-fading {
    opacity: 0;
}

body.task-login .auth-showcase-media.has-link {
    cursor: pointer;
}

body.task-login .auth-showcase-media.has-link img {
    cursor: pointer;
}

body.task-login .auth-showcase-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 2.4rem;
    height: 2.4rem;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.42);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    line-height: 1;
    transition: background 0.2s ease, transform 0.2s ease;
}

body.task-login .auth-showcase-nav:hover,
body.task-login .auth-showcase-nav:focus-visible {
    background: rgba(15, 23, 42, 0.72);
    outline: none;
}

body.task-login .auth-showcase-prev {
    left: 0.85rem;
}

body.task-login .auth-showcase-next {
    right: 0.85rem;
}

body.task-login .auth-showcase-dots {
    position: absolute;
    left: 50%;
    bottom: 0.95rem;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.35);
}

body.task-login .auth-showcase-dot {
    width: 0.55rem;
    height: 0.55rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

body.task-login .auth-showcase-dot:hover,
body.task-login .auth-showcase-dot:focus-visible {
    background: rgba(255, 255, 255, 0.8);
    outline: none;
}

body.task-login .auth-showcase-dot.is-active {
    background: #fff;
    transform: scale(1.25);
}

@media (max-width: 980px) {
    body.task-login #layout-content.modern-auth {
        padding: 1rem 1rem 6.75rem;
        align-items: flex-start;
    }

    body.task-login .auth-bottom-stack {
        left: 0.75rem;
        right: 0.75rem;
        transform: none;
        width: auto;
        max-width: calc(100vw - 1.5rem);
        box-sizing: border-box;
    }

    body.task-login .auth-shell {
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 560px;
        margin: 0 auto;
    }

    /* Mobil: showcase formun altında şerit olarak görünsün */
    body.task-login .auth-showcase {
        display: block;
        width: 100%;
        min-height: 200px;
        height: 200px;
        align-self: auto;
        border-top: 1px solid var(--surface-border);
    }

    body.task-login .auth-showcase-media {
        position: absolute;
        inset: 0;
    }

    body.task-login .auth-showcase-nav {
        width: 2.1rem;
        height: 2.1rem;
        font-size: 1rem;
    }

    body.task-login .auth-showcase-prev {
        left: 0.55rem;
    }

    body.task-login .auth-showcase-next {
        right: 0.55rem;
    }

    body.task-login .auth-showcase-dots {
        bottom: 0.65rem;
    }

    body.task-login .auth-panel {
        max-width: none;
        width: 100%;
        padding: 1.5rem 1.35rem;
    }

    body.task-login .auth-header {
        min-height: 120px;
        margin-bottom: 1rem;
    }

    body.task-login .auth-header #logo,
    body.task-login .auth-header #logo-white {
        height: 120px !important;
        max-height: 120px !important;
        max-width: min(280px, 100%) !important;
    }

    body.task-login .auth-copy h2 {
        margin-bottom: 0.4rem;
        font-size: 1.45rem;
        text-align: center;
    }

    body.task-login .auth-copy p,
    body.task-login .auth-copy-lead {
        margin: 0 auto 1.1rem;
        text-align: center;
        font-size: 0.9rem;
        max-width: 22rem;
    }

    /* Daha büyük dokunma alanları */
    body.task-login #login-form .form-control,
    body.task-login #login-form input.form-control,
    body.task-login #login-form select.form-control {
        height: 3.25rem;
        min-height: 3.25rem;
        font-size: 16px; /* iOS zoom engeli */
    }

    body.task-login #login-form .input-group .input-group-text {
        min-width: 3.25rem;
        font-size: 1.05rem;
    }

    body.task-login #login-form .button.mainaction,
    body.task-login #login-form button[type='submit'] {
        min-height: 3.25rem;
        height: 3.25rem;
        font-size: 1rem;
        letter-spacing: 0.02em;
    }

    body.task-login #login-form table {
        border-spacing: 0 0.9rem;
    }

    body.task-login .auth-bottom-stack {
        left: 0.75rem;
        right: 0.75rem;
        transform: none;
        width: auto;
        max-width: calc(100vw - 1.5rem);
        box-sizing: border-box;
    }

    body.task-login .auth-utility-row {
        gap: 0.25rem;
        padding: 0.35rem 0.4rem;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        border-radius: 1.15rem;
    }

    /* Popover / Kopyalandı uyarısı kesilmesin */
    body.task-login .auth-utility-row:has(.is-popover-open) {
        overflow: visible;
    }

    body.task-login .auth-utility-row::-webkit-scrollbar {
        display: none;
    }

    body.task-login .auth-links {
        width: auto;
        flex-wrap: nowrap;
        flex-shrink: 0;
        gap: 0.25rem;
    }

    body.task-login .auth-link-full {
        display: none;
    }

    body.task-login .auth-link-short {
        display: inline;
    }

    body.task-login .auth-link-btn,
    body.task-login .auth-theme-toggle,
    body.task-login .auth-lang-btn {
        min-height: 2rem;
        padding: 0 0.45rem;
        font-size: 0.7rem;
        flex-shrink: 0;
    }

    /* Temayı ikona indir, yer kazan */
    body.task-login .auth-theme-toggle .theme-text {
        display: none;
    }

    body.task-login .auth-ip-head,
    body.task-login .auth-status-head {
        display: none;
    }

    body.task-login .auth-lang-btn {
        min-width: 2rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 0.4rem;
    }

    body.task-login .auth-lang-switch,
    body.task-login .auth-theme-toggle,
    body.task-login .auth-ip-box,
    body.task-login .auth-status-box {
        flex-shrink: 0;
    }

    body.task-login .auth-ip-box {
        min-height: 2rem;
        padding: 0.12rem 0.2rem 0.12rem 0.4rem;
    }

    body.task-login .auth-status-box {
        min-height: 2rem;
        padding: 0.12rem 0.45rem 0.12rem 0.35rem;
        margin: 0;
    }

    body.task-login .auth-status-text {
        font-size: 0.68rem;
    }

    body.task-login .auth-ip-value {
        max-width: 5.75rem;
        font-size: 0.68rem;
    }

    body.task-login .auth-ip-value.is-ipv6 {
        max-width: 7.75rem;
        font-size: 0.62rem;
    }

    body.task-login .auth-ip-copy {
        width: 1.75rem;
        height: 1.75rem;
    }

    body.task-login .auth-ip-copy svg {
        width: 12px;
        height: 12px;
    }

    body.task-login .auth-capslock-hint {
        font-size: 0.9rem;
        padding: 0.65rem 0.85rem;
    }
}

@media (max-width: 560px) {
    body.task-login #layout-content.modern-auth {
        padding: 0.75rem 0.75rem 6.5rem;
    }

    body.task-login .auth-shell {
        max-width: none;
        border-radius: 16px;
    }

    body.task-login .auth-showcase {
        min-height: 170px;
        height: 170px;
    }

    body.task-login .auth-panel {
        padding: 1.25rem 1rem;
    }

    body.task-login .auth-header {
        min-height: 100px;
    }

    body.task-login .auth-header #logo,
    body.task-login .auth-header #logo-white {
        height: 100px !important;
        max-height: 100px !important;
        max-width: min(240px, 92%) !important;
    }

    body.task-login #login-form .form-control,
    body.task-login #login-form input.form-control,
    body.task-login #login-form select.form-control,
    body.task-login #login-form .button.mainaction,
    body.task-login #login-form button[type='submit'] {
        height: 3.4rem;
        min-height: 3.4rem;
    }

    body.task-login #login-form .input-group .input-group-text {
        min-width: 3.4rem;
    }

    body.task-login .auth-bottom-stack {
        left: 0.6rem;
        right: 0.6rem;
        transform: none;
        width: auto;
        max-width: calc(100vw - 1.2rem);
        bottom: 0.55rem;
        box-sizing: border-box;
    }

    body.task-login .auth-utility-row {
        width: 100%;
        max-width: 100%;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        border-radius: 1rem;
        gap: 0.22rem;
        padding: 0.3rem 0.35rem;
        box-sizing: border-box;
    }

    body.task-login .auth-utility-row:has(.is-popover-open) {
        overflow: visible;
    }

    body.task-login .auth-status-box {
        min-height: 1.85rem;
        padding: 0.1rem 0.4rem 0.1rem 0.3rem;
    }

    body.task-login .auth-status-text {
        font-size: 0.64rem;
    }

    body.task-login .auth-ip-value {
        max-width: 5.25rem;
        font-size: 0.64rem;
    }

    body.task-login .auth-ip-value.is-ipv6 {
        max-width: 7.5rem;
        font-size: 0.58rem;
    }
}

@media (max-width: 380px) {
    body.task-login .auth-utility-row {
        gap: 0.3rem;
        padding: 0.35rem 0.4rem;
    }

    body.task-login .auth-link-btn {
        padding: 0 0.45rem;
        font-size: 0.68rem;
    }

    body.task-login .auth-ip-value {
        max-width: 6.25rem;
        font-size: 0.65rem;
    }

    body.task-login .auth-status-text {
        font-size: 0.65rem;
    }
}

html.dark-mode body.task-login {
    --panel-bg: #0f172a;
    --surface: #182233;
    --surface-muted: #314158;
    --surface-border: #334155;
    --surface-shadow: 0 26px 46px rgba(2, 6, 23, 0.5);
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --brand: #38bdf8;
    --brand-hover: #7dd3fc;
    --focus-ring: rgba(56, 189, 248, 0.28);
    background: radial-gradient(1000px 600px at -10% -10%, rgba(14, 116, 144, 0.45), transparent 65%),
        radial-gradient(900px 500px at 120% -20%, rgba(3, 105, 161, 0.35), transparent 60%),
        var(--panel-bg);
}

html.dark-mode body.task-login .auth-theme-toggle {
    background: #1e293b;
    border-color: #475569;
    color: #cbd5e1;
}

html.dark-mode body.task-login .auth-theme-toggle:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: #0f172a;
}

html.dark-mode body.task-login #login-form .form-control {
    border-color: #475569;
    background-color: #1e293b;
    color: #e2e8f0;
}

html.dark-mode body.task-login #login-form .input-group .input-group-text {
    color: #64748b;
    background-color: #1e293b;
    border-color: #475569;
}

html.dark-mode body.task-login .auth-utility-row {
    background: rgba(15, 23, 42, 0.95);
    border-color: #334155;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

html.dark-mode body.task-login .auth-lang-switch {
    background: #1e293b;
    border-color: #475569;
}

html.dark-mode body.task-login .auth-lang-btn {
    color: #cbd5e1;
}

html.dark-mode body.task-login .auth-lang-btn + .auth-lang-btn {
    border-left-color: #475569;
}

html.dark-mode body.task-login .auth-lang-btn:hover {
    color: #fff;
    background: rgba(14, 165, 233, 0.18);
}

html.dark-mode body.task-login .auth-lang-btn.is-active {
    color: #fff;
    background: var(--brand);
}

html.dark-mode body.task-login .auth-link-btn {
    background: #1e293b;
    border-color: #475569;
    color: #cbd5e1;
}

html.dark-mode body.task-login .auth-link-btn:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: #0f172a;
}

html.dark-mode body.task-login .auth-ip-box {
    background: #1e293b;
    border-color: #475569;
}

html.dark-mode body.task-login .auth-status-box {
    background: #1e293b;
    border-color: #475569;
}

html.dark-mode body.task-login .auth-status-head {
    color: #94a3b8;
}

html.dark-mode body.task-login .auth-status-box.is-green .auth-status-text {
    color: #4ade80;
}

html.dark-mode body.task-login .auth-status-box.is-orange .auth-status-text {
    color: #fb923c;
}

html.dark-mode body.task-login .auth-status-box.is-red .auth-status-text {
    color: #f87171;
}

html.dark-mode body.task-login .auth-status-popover {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45);
}

html.dark-mode body.task-login .auth-status-popover-title {
    color: #f8fafc;
}

html.dark-mode body.task-login .auth-status-popover-label {
    color: #94a3b8;
}

html.dark-mode body.task-login .auth-status-popover-detail {
    color: #cbd5e1;
}

html.dark-mode body.task-login .auth-ip-value {
    color: #cbd5e1;
}

html.dark-mode body.task-login .auth-ip-popover {
    background: #1f2937;
    border-color: #334155;
    color: #e2e8f0;
    box-shadow: 0 14px 28px rgba(2, 6, 23, 0.45);
}

html.dark-mode body.task-login .auth-ip-popover::after {
    border-top-color: #1f2937;
}

html.dark-mode body.task-login .auth-ip-popover-title {
    color: #f8fafc;
}

html.dark-mode body.task-login .auth-ip-popover-label {
    color: #94a3b8;
}

html.dark-mode body.task-login .auth-ip-popover-row strong,
html.dark-mode body.task-login .auth-ip-popover-row span:not(.auth-ip-popover-label) {
    color: #e2e8f0;
}

html.dark-mode body.task-login .auth-ip-copy {
    background: #334155;
    border-color: #475569;
    color: var(--text-primary);
}

html.dark-mode body.task-login .auth-ip-copy:hover {
    background: var(--brand);
    color: #0f172a;
}

html.dark-mode body.task-login .auth-ip-copy.is-copied {
    color: #49c5b7;
    border-color: #2d7f76;
    background: #243a37;
}

html.dark-mode body.task-login .auth-header #logo {
    display: none !important;
}

html.dark-mode body.task-login .auth-header #logo-white {
    display: block !important;
}

html.dark-mode body.task-login .auth-showcase {
    background: #0c4a6e;
}

.special-buttons .about {
    display: none !important;
}

.task-login .input-group .icon.user:before {
    content: "\f1fa";
}

/* Menu / popover logo */
#layout-menu .popover-header #logo,
.popover-header #logo {
    max-height: 42px !important;
    width: auto !important;
    object-fit: contain;
    opacity: 1 !important;
}

html.dark-mode #logo {
    opacity: 1 !important;
}

/*
 * Elastic keeps #layout-menu dark even in light mode (#2f3a3f).
 * Make the rail follow the active color mode.
 */
html:not(.dark-mode) #layout-menu {
    background: #ffffff !important;
    border-right: 1px solid #e2e8f0 !important;
}

html:not(.dark-mode) #layout-menu .popover-header {
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
}

html:not(.dark-mode) #taskmenu,
html:not(.dark-mode) #taskmenu .special-buttons,
html:not(.dark-mode) #taskmenu .action-buttons {
    background: #ffffff !important;
    background-color: #ffffff !important;
}

html:not(.dark-mode) #taskmenu a,
html:not(.dark-mode) #taskmenu .special-buttons a,
html:not(.dark-mode) #taskmenu a.theme,
html:not(.dark-mode) #taskmenu a.theme:before {
    color: #334155 !important;
}

html:not(.dark-mode) #taskmenu a:before {
    color: inherit !important;
}

html:not(.dark-mode) #taskmenu a:hover,
html:not(.dark-mode) #taskmenu .special-buttons a:hover,
html:not(.dark-mode) #taskmenu a.theme:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

html:not(.dark-mode) #taskmenu a.selected {
    background: rgba(14, 165, 233, 0.12) !important;
    color: #0284c7 !important;
}

html:not(.dark-mode) #taskmenu a.compose,
html:not(.dark-mode) #taskmenu a.compose:hover {
    background: #0ea5e9 !important;
    color: #ffffff !important;
}

html:not(.dark-mode) #taskmenu a.compose:before {
    color: #ffffff !important;
}

html:not(.dark-mode) #taskmenu a.logout,
html:not(.dark-mode) #taskmenu a.logout:hover {
    color: #ef4444 !important;
}

/* Phone overlay menu in light mode */
html:not(.dark-mode).layout-phone #layout-menu,
html:not(.dark-mode).layout-phone #taskmenu .special-buttons {
    background: #ffffff !important;
    box-shadow: 8px 0 28px rgba(15, 23, 42, 0.12);
}

/* Multiline quota tooltip (mailbox + domain lines) */
.tooltip-inner {
    white-space: pre;
    text-align: left;
    max-width: 28rem;
    font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", "Liberation Mono", Menlo, Monaco, Consolas, monospace;
    font-size: 0.78rem;
    line-height: 1.45;
}

/* Userinfo TLS / protocol status icons */
.userinfo-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: Icons;
    font-weight: 900;
    font-style: normal;
    font-size: 1rem;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
}

.userinfo-status .userinfo-status-text {
    font-family: inherit;
    font-weight: 500;
    font-size: 0.875rem;
}

.userinfo-status.is-on {
    color: #16a34a;
}

.userinfo-status.is-off {
    color: #dc2626;
}

html.dark-mode .userinfo-status.is-on {
    color: #4ade80;
}

html.dark-mode .userinfo-status.is-off {
    color: #f87171;
}

.userinfo-hint {
    cursor: help;
    border-bottom: 1px dotted currentColor;
}

/* Userinfo collapsible section */
.userinfo-details {
    margin-top: 0.85rem;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.02);
    overflow: hidden;
}

html.dark-mode .userinfo-details {
    border-color: rgba(148, 163, 184, 0.22);
    background: rgba(148, 163, 184, 0.06);
}

.userinfo-details-summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 0.9rem;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.3;
}

.userinfo-details-summary::-webkit-details-marker {
    display: none;
}

.userinfo-details-summary::before {
    content: '';
    width: 0.45rem;
    height: 0.45rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    transition: transform 0.15s ease;
    flex: 0 0 auto;
    opacity: 0.7;
}

.userinfo-details[open] > .userinfo-details-summary::before {
    transform: rotate(45deg);
}

.userinfo-details-summary:hover {
    background: rgba(15, 23, 42, 0.04);
}

html.dark-mode .userinfo-details-summary:hover {
    background: rgba(148, 163, 184, 0.08);
}

.userinfo-details-body {
    padding: 0 0.55rem 0.55rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

html.dark-mode .userinfo-details-body {
    border-top-color: rgba(148, 163, 184, 0.16);
}

.userinfo-details-body .propform {
    margin: 0;
}

/* Domain kullanımı >= %80: footer kota uyarısı */
@keyframes quota-domain-alert-pulse {
    0%, 100% {
        background-color: rgba(220, 38, 38, 0.18);
        box-shadow: inset 0 0 0 1px rgba(220, 38, 38, 0.35);
    }
    50% {
        background-color: rgba(220, 38, 38, 0.72);
        box-shadow: inset 0 0 0 1px rgba(185, 28, 28, 0.9);
    }
}

@keyframes quota-domain-alert-bar {
    0%, 100% { opacity: 0.85; }
    50% { opacity: 1; }
}

#layout-sidebar > .footer.quota-domain-alert-footer {
    animation: quota-domain-alert-pulse 1.1s ease-in-out infinite;
}

#quotadisplay.quota-domain-alert {
    color: #fff;
}

#quotadisplay.quota-domain-alert .bar .value {
    background-color: #fecaca !important;
    opacity: 1;
    animation: quota-domain-alert-bar 1.1s ease-in-out infinite;
}

html.dark-mode #layout-sidebar > .footer.quota-domain-alert-footer {
    animation-name: quota-domain-alert-pulse-dark;
}

@keyframes quota-domain-alert-pulse-dark {
    0%, 100% {
        background-color: rgba(220, 38, 38, 0.22);
        box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.35);
    }
    50% {
        background-color: rgba(185, 28, 28, 0.85);
        box-shadow: inset 0 0 0 1px rgba(252, 165, 165, 0.7);
    }
}
