:root {
    --pl-bg: #0e1116;
    --pl-surface: rgba(22, 27, 34, 0.72);
    --pl-surface-2: rgba(28, 33, 40, 0.72);
    --pl-surface-3: rgba(35, 41, 50, 0.72);
    --pl-border: rgba(255, 255, 255, 0.08);
    --pl-border-strong: rgba(255, 255, 255, 0.14);
    --pl-text: #e6edf3;
    --pl-text-muted: #8b949e;
    --pl-text-dim: #6e7681;
    --pl-primary: #fbbf24;
    --pl-primary-hover: #f59e0b;
    --pl-info: #58a6ff;
    --pl-danger: #f85149;
    --pl-success: #3fb950;
    --pl-radius: 14px;
    --pl-radius-sm: 10px;
}

body.login-body {
    background: var(--pl-bg);
    color: var(--pl-text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.login-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.login-layout {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 64px;
    width: 100%;
    max-width: 940px;
}

.login-layout .mockup-side {
    min-width: 340px;
    width: 360px;
    flex-shrink: 0;
}

@media (max-width: 1023px) {
    .login-layout .mockup-side {
        display: none !important;
    }
    .login-layout {
        gap: 0;
    }
}

.login-layout.login-single {
    gap: 0;
    max-width: 440px;
}

.pl-shell {
    position: relative;
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#kt_sign_in_form,
#kt_resetpw_form,
#kt_reset_form {
    position: relative;
    display: grid;
    place-items: stretch;
    background: var(--pl-surface);
    border: 1px solid var(--pl-border);
    border-radius: 22px;
    padding: 32px 28px 28px 28px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(255, 255, 255, 0.04) inset;
    backdrop-filter: blur(32px) saturate(180%);
    -webkit-backdrop-filter: blur(32px) saturate(180%);
}

.pl-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
}

.pl-brand img {
    width: 168px;
    max-width: 60%;
    height: auto;
    object-fit: contain;
}

.pl-brand-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(88, 166, 255, 0.12);
    color: var(--pl-info);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#form-body {
    width: 100%;
}

#welcome-lines {
    text-align: center;
    line-height: 1.25;
    margin-bottom: 24px;
}

#welcome-line-2 {
    color: var(--pl-text-muted);
    font-size: 13.5px;
    letter-spacing: -0.005em;
}

#input-area {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-group-modern {
    margin: 0;
}

.form-inp {
    position: relative;
    background: var(--pl-surface-2);
    border: 1px solid var(--pl-border-strong);
    border-radius: var(--pl-radius);
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.form-inp:focus-within {
    border-color: var(--pl-info);
    background: var(--pl-surface);
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.18);
}

.form-inp.is-invalid {
    border-color: var(--pl-danger);
    box-shadow: 0 0 0 3px rgba(248, 81, 73, 0.16);
}

.form-inp-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--pl-text-dim);
    font-size: 14px;
    pointer-events: none;
    transition: color .18s ease;
}

.form-inp:focus-within .form-inp-icon {
    color: var(--pl-info);
}

.form-inp input,
.form-inp input.form-control {
    width: 100%;
    background: transparent !important;
    background-image: none !important;
    font-size: 14px;
    padding: 13px 16px 13px 42px;
    color: var(--pl-text);
    border: 0 !important;
    border-radius: var(--pl-radius) !important;
    outline: none !important;
    box-shadow: none !important;
    margin: 0;
    letter-spacing: -0.005em;
    height: auto;
}

.form-inp input::placeholder {
    color: var(--pl-text-dim);
}

.form-inp input:focus,
.form-inp input:focus-visible,
.form-inp input.form-control:focus {
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.password-toggle-simple {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: var(--pl-text-dim);
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color .15s ease, background .15s ease;
}

.password-toggle-simple:hover {
    color: var(--pl-text);
    background: var(--pl-surface-3);
}

.form-inp input[type="password"],
.form-inp:has(.password-toggle-simple) input {
    padding-right: 48px;
}

.input-feedback {
    display: none;
    margin: 6px 4px 0 4px;
    font-size: 12px;
    color: var(--pl-danger);
    letter-spacing: -0.005em;
}

.input-feedback.show {
    display: block;
}

.pl-form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 2px 0 2px;
}

.pl-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    font-size: 13px;
    color: var(--pl-text-muted);
}

.pl-remember input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pl-remember-check {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 1.5px solid var(--pl-border-strong);
    background: var(--pl-surface-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 10px;
    transition: all .18s cubic-bezier(.32, .72, 0, 1);
    flex-shrink: 0;
}

.pl-remember input:checked ~ .pl-remember-check {
    background: var(--pl-info);
    border-color: var(--pl-info);
    color: #fff;
}

.pl-forgot {
    font-size: 13px;
    font-weight: 500;
    color: var(--pl-info);
    text-decoration: none;
    transition: color .15s ease;
}

.pl-forgot:hover {
    color: var(--pl-info-hover, #4493f8);
    text-decoration: none;
}

#submit-button-cvr {
    margin-top: 20px;
}

.cf-widget {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

#kt_sign_in_submit,
#kt_resetpw_submit,
#kt_reset_submit {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    color: #1a1a1a;
    background: linear-gradient(180deg, var(--pl-primary), var(--pl-primary-hover));
    font-weight: 700;
    font-size: 14px;
    margin: 0;
    padding: 14px 16px;
    border: 0;
    border-radius: var(--pl-radius);
    line-height: 1;
    cursor: pointer;
    letter-spacing: -0.005em;
    box-shadow: 0 6px 16px rgba(251, 191, 36, 0.25), 0 1px 0 rgba(255, 255, 255, 0.2) inset;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}

#kt_sign_in_submit:hover,
#kt_resetpw_submit:hover,
#kt_reset_submit:hover {
    background: linear-gradient(180deg, #fcd34d, var(--pl-primary));
    box-shadow: 0 8px 22px rgba(251, 191, 36, 0.35), 0 1px 0 rgba(255, 255, 255, 0.25) inset;
    transform: translateY(-1px);
}

#kt_sign_in_submit:active,
#kt_resetpw_submit:active,
#kt_reset_submit:active {
    transform: translateY(0);
}

#kt_sign_in_submit i,
#kt_resetpw_submit i,
#kt_reset_submit i {
    font-size: 13px;
    transition: transform .2s ease;
}

#kt_sign_in_submit:hover i,
#kt_resetpw_submit:hover i,
#kt_reset_submit:hover i {
    transform: translateX(3px);
}

#kt_sign_in_submit .indicator-progress,
#kt_resetpw_submit .indicator-progress,
#kt_reset_submit .indicator-progress {
    display: none;
}

#kt_sign_in_submit[data-kt-indicator="on"] .indicator-label,
#kt_resetpw_submit[data-kt-indicator="on"] .indicator-label,
#kt_reset_submit[data-kt-indicator="on"] .indicator-label {
    display: none;
}

#kt_sign_in_submit[data-kt-indicator="on"] .indicator-progress,
#kt_resetpw_submit[data-kt-indicator="on"] .indicator-progress,
#kt_reset_submit[data-kt-indicator="on"] .indicator-progress {
    display: inline-flex;
    align-items: center;
}

#kt_sign_in_submit[data-kt-indicator="on"] i,
#kt_resetpw_submit[data-kt-indicator="on"] i,
#kt_reset_submit[data-kt-indicator="on"] i {
    display: none;
}

.pl-secure-note {
    margin-top: 18px;
    text-align: center;
    font-size: 12px;
    color: var(--pl-text-dim);
}

.pl-secure-note i {
    color: var(--pl-success);
    margin-right: 4px;
}

.pl-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--pl-radius);
    font-size: 13px;
    line-height: 1.45;
    margin-bottom: 18px;
}

.pl-alert i {
    font-size: 15px;
    margin-top: 1px;
    flex-shrink: 0;
}

.pl-alert-success {
    color: #86efac;
    background: rgba(63, 185, 80, 0.10);
    border: 1px solid rgba(63, 185, 80, 0.25);
}

.pl-alert-success i {
    color: var(--pl-success);
}

.pl-alert-danger {
    color: #fca5a5;
    background: rgba(248, 81, 73, 0.10);
    border: 1px solid rgba(248, 81, 73, 0.25);
}

.pl-alert-danger i {
    color: var(--pl-danger);
}

body.light-theme.login-body .pl-alert-success {
    color: #15803d;
}

body.light-theme.login-body .pl-alert-danger {
    color: #b91c1c;
}

.pl-back-link {
    margin-top: 18px;
    text-align: center;
}

.pl-back-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--pl-info);
    text-decoration: none;
    transition: color .15s ease;
}

.pl-back-link a:hover {
    color: var(--pl-info-hover, #4493f8);
    text-decoration: none;
}

.pl-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 4px 0 4px;
    flex-wrap: wrap;
}

.pl-copy {
    font-size: 12px;
    color: var(--pl-text-dim);
    letter-spacing: -0.005em;
}

.pl-copy b {
    color: var(--pl-text-muted);
    font-weight: 600;
}

.pl-footer-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.pl-lang {
    position: relative;
}

.pl-lang-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--pl-surface-2);
    border: 1px solid var(--pl-border);
    border-radius: 999px;
    color: var(--pl-text-muted);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.pl-lang-trigger::-webkit-details-marker { display: none; }
.pl-lang-trigger::marker { display: none; content: ""; }

.pl-lang-trigger:hover {
    background: var(--pl-surface-3);
    color: var(--pl-text);
    border-color: var(--pl-border-strong);
}

.pl-lang[open] .pl-lang-trigger {
    background: var(--pl-surface-3);
    color: var(--pl-text);
    border-color: var(--pl-info);
}

.pl-lang-flag {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.pl-lang-chev {
    font-size: 10px;
    transition: transform .2s ease;
}

.pl-lang[open] .pl-lang-chev {
    transform: rotate(180deg);
}

.pl-lang-menu {
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: var(--pl-surface);
    border: 1px solid var(--pl-border-strong);
    border-radius: var(--pl-radius);
    padding: 6px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .4);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 2px;
    animation: plLangIn .18s cubic-bezier(.32, .72, 0, 1);
}

@keyframes plLangIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.pl-lang-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    border: 0;
    background: transparent;
    border-radius: var(--pl-radius-sm);
    color: var(--pl-text);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    text-decoration: none;
    transition: background .12s ease;
}

.pl-lang-item:hover {
    background: var(--pl-surface-3);
    color: var(--pl-text);
    text-decoration: none;
}

.pl-lang-item.is-active {
    background: rgba(88, 166, 255, 0.10);
    color: var(--pl-info);
}

.pl-lang-item-check {
    margin-left: auto;
    font-size: 11px;
    color: var(--pl-info);
}

.partner-bg-pattern {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

.partner-bg-pattern-inner {
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    height: 720px;
    width: 1300px;
    max-width: 100%;
}

.partner-bg-pattern-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% 0%, rgba(88, 166, 255, 0.20), transparent 70%),
        radial-gradient(ellipse 50% 40% at 30% 20%, rgba(251, 191, 36, 0.10), transparent 70%),
        radial-gradient(ellipse 40% 35% at 75% 15%, rgba(168, 85, 247, 0.12), transparent 70%);
}

.partner-bg-pattern-blob {
    display: none;
}

.partner-bg-pattern-grid {
    position: absolute;
    left: 0;
    right: 0;
    top: -30%;
    height: 160%;
    width: 100%;
    transform: skewY(-14deg);
    fill: rgba(255, 255, 255, 0.018);
    stroke: rgba(255, 255, 255, 0.045);
}

.partner-bg-pattern-grid-rects {
    overflow: visible;
}

.login-container,
.login-layout {
    position: relative;
}

.swal2-container {
    z-index: 2000 !important;
}

.login-body .swal2-popup {
    background: var(--pl-surface);
    border: 1px solid var(--pl-border);
    border-radius: 22px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(255, 255, 255, 0.04) inset;
    color: var(--pl-text);
}

.login-body .swal2-title,
.login-body .swal2-html-container {
    color: var(--pl-text);
}

.login-body .p-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #1a1a1a;
    background: linear-gradient(180deg, var(--pl-primary), var(--pl-primary-hover));
    border: 0;
    border-radius: var(--pl-radius-sm);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    padding: 10px 22px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(251, 191, 36, 0.25), 0 1px 0 rgba(255, 255, 255, 0.2) inset;
    transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}

.login-body .p-btn:hover {
    color: #1a1a1a;
    background: linear-gradient(180deg, #fcd34d, var(--pl-primary));
}

.login-body .p-btn:disabled,
.login-body .p-btn.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

.login-body .p-btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.login-body .p-btn-ghost {
    color: var(--pl-text);
    background: var(--pl-surface-2);
    box-shadow: 0 0 0 1px var(--pl-border-strong) inset;
    font-weight: 600;
}

.login-body .p-btn-ghost:hover {
    color: var(--pl-text);
    background: var(--pl-surface-3);
    box-shadow: 0 0 0 1px var(--pl-border-strong) inset;
}

.login-body .swal2-popup .p-btn {
    padding: 10px 26px;
}

.otp-modal .modal-content {
    background: var(--pl-surface);
    border: 1px solid var(--pl-border);
    border-radius: 22px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(255, 255, 255, 0.04) inset;
    backdrop-filter: blur(32px) saturate(180%);
    -webkit-backdrop-filter: blur(32px) saturate(180%);
    color: var(--pl-text);
}

.otp-modal .modal-header h2 {
    color: var(--pl-text);
}

.otp-modal .auth-message {
    color: var(--pl-text-muted) !important;
}

.otp-modal .auth-target {
    color: var(--pl-text) !important;
}

.pl-otp-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 0;
    background: var(--pl-surface-2);
    color: var(--pl-text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    transition: background .15s ease, color .15s ease;
}

.pl-otp-close-btn:hover {
    background: var(--pl-surface-3);
    color: var(--pl-text);
}

.pl-otp-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    margin: 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(88, 166, 255, 0.14);
    color: var(--pl-info);
    font-size: 22px;
    box-shadow: 0 6px 20px rgba(88, 166, 255, 0.25), 0 0 0 1px rgba(88, 166, 255, 0.18) inset;
}

.otp-modal .form-control {
    background: var(--pl-surface-2) !important;
    border: 1px solid var(--pl-border-strong);
    border-radius: var(--pl-radius-sm);
    color: var(--pl-text) !important;
}

.otp-modal .form-control:focus {
    border-color: var(--pl-info);
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.18);
}

.otp-modal #kt_verfiy_submit {
    color: #1a1a1a;
    background: linear-gradient(180deg, var(--pl-primary), var(--pl-primary-hover));
    border: 0;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(251, 191, 36, 0.25), 0 1px 0 rgba(255, 255, 255, 0.2) inset;
}

.otp-modal #kt_verfiy_submit:hover {
    background: linear-gradient(180deg, #fcd34d, var(--pl-primary));
}

body.light-theme.login-body {
    background: #f4f6fb;
    color: #0f172a;
    --pl-bg: #f4f6fb;
    --pl-surface: rgba(255, 255, 255, 0.7);
    --pl-surface-2: rgba(255, 255, 255, 0.85);
    --pl-surface-3: rgba(243, 244, 246, 0.9);
    --pl-border: rgba(15, 23, 42, 0.06);
    --pl-border-strong: rgba(15, 23, 42, 0.1);
    --pl-text: #0f172a;
    --pl-text-muted: #475569;
    --pl-text-dim: #94a3b8;
}

body.light-theme.login-body #kt_sign_in_form,
body.light-theme.login-body #kt_resetpw_form,
body.light-theme.login-body #kt_reset_form {
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.10), 0 1px 0 rgba(255, 255, 255, 0.5) inset;
}

body.light-theme.login-body .partner-bg-pattern-gradient {
    background:
        radial-gradient(ellipse 60% 50% at 50% 0%, rgba(88, 166, 255, 0.18), transparent 70%),
        radial-gradient(ellipse 50% 40% at 30% 20%, rgba(251, 191, 36, 0.14), transparent 70%),
        radial-gradient(ellipse 40% 35% at 75% 15%, rgba(168, 85, 247, 0.10), transparent 70%);
}

body.light-theme.login-body .partner-bg-pattern-grid {
    fill: rgba(15, 23, 42, 0.025);
    stroke: rgba(15, 23, 42, 0.05);
}

@media (max-width: 480px) {
    .login-container {
        padding: 24px 16px;
        align-items: flex-start;
    }
    #kt_sign_in_form,
    #kt_resetpw_form,
    #kt_reset_form {
        padding: 24px 20px 20px 20px;
        border-radius: 18px;
    }
}
