/*
Template Name: Velzon - Admin & Dashboard Template
Author: Themesbrand
Website: https://themesbrand.com/
Contact: support@themesbrand.com
File: Custom Css File
*/

:root {
    --ks-ui-surface: #ffffff;
    --ks-ui-surface-soft: #f8fafc;
    --ks-ui-text: #0f172a;
    --ks-ui-muted: #64748b;
    --ks-ui-border: rgba(148, 163, 184, 0.28);
    --ks-ui-primary: #2563eb;
    --ks-ui-primary-dark: #1d4ed8;
    --ks-ui-success: #10b981;
}

html[data-bs-theme="dark"] {
    --ks-ui-surface: #111827;
    --ks-ui-surface-soft: #172033;
    --ks-ui-text: #e5e7eb;
    --ks-ui-muted: #94a3b8;
    --ks-ui-border: rgba(148, 163, 184, 0.22);
    --ks-ui-primary: #60a5fa;
    --ks-ui-primary-dark: #3b82f6;
}

html[data-bs-theme="dark"] body,
html[data-bs-theme="dark"] .page-content {
    background: #0b1120;
    color: var(--ks-ui-text);
}

html[data-bs-theme="dark"] .card,
html[data-bs-theme="dark"] .modal-content,
html[data-bs-theme="dark"] .dropdown-menu {
    background-color: var(--ks-ui-surface);
    border-color: var(--ks-ui-border);
    color: var(--ks-ui-text);
}

html[data-bs-theme="dark"] .text-muted {
    color: var(--ks-ui-muted) !important;
}

.ks-login-page {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(30, 64, 175, 0.62)),
        var(--ks-login-bg) center/cover no-repeat;
}

.ks-login-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(15, 23, 42, 0.52));
    pointer-events: none;
}

.ks-login-shell {
    min-height: 100vh;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

.ks-login-card {
    width: min(100%, 460px);
    position: relative;
    padding: 22px 24px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.32);
    backdrop-filter: blur(18px);
}

html[data-bs-theme="dark"] .ks-login-card {
    background: rgba(15, 23, 42, 0.88);
    border-color: rgba(148, 163, 184, 0.24);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
}

.ks-login-card-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    min-height: 30px;
    margin-bottom: 8px;
}

.ks-segment-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 8px;
    border: 1px solid var(--ks-ui-border);
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.82);
    color: var(--ks-ui-muted);
    font-size: 12px;
    font-weight: 700;
}

html[data-bs-theme="dark"] .ks-segment-toggle {
    background: rgba(15, 23, 42, 0.72);
}

.ks-toggle-label.active {
    color: var(--ks-ui-primary);
}

.ks-switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 22px;
    margin: 0;
}

.ks-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ks-slider {
    position: absolute;
    inset: 0;
    cursor: pointer;
    background: #cbd5e1;
    border-radius: 999px;
    transition: 0.2s ease;
}

.ks-slider::before {
    content: "";
    position: absolute;
    height: 16px;
    width: 16px;
    inset-inline-start: 3px;
    top: 3px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.24);
    transition: 0.2s ease;
}

.ks-switch input:checked + .ks-slider {
    background: var(--ks-ui-primary);
}

.ks-switch input:checked + .ks-slider::before {
    transform: translateX(20px);
}

[dir="rtl"] .ks-switch input:checked + .ks-slider::before {
    transform: translateX(-20px);
}

.ks-theme-toggle {
    width: 36px;
    height: 36px;
    border: 1px solid var(--ks-ui-border);
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.86);
    color: var(--ks-ui-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

html[data-bs-theme="dark"] .ks-theme-toggle {
    background: rgba(15, 23, 42, 0.76);
    color: #facc15;
}

.ks-theme-toggle .ks-theme-moon,
.ks-theme-toggle[data-theme="dark"] .ks-theme-sun {
    display: none;
}

.ks-theme-toggle[data-theme="dark"] .ks-theme-moon {
    display: inline;
}

.ks-login-brand {
    text-align: center;
    padding: 2px 0 14px;
}

.ks-login-logo-wrap {
    width: 68px;
    height: 68px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid var(--ks-ui-border);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}

.ks-login-logo {
    max-width: 58px;
    max-height: 58px;
    object-fit: contain;
}

.ks-login-kicker {
    margin: 0 0 4px;
    color: var(--ks-ui-primary);
    font-weight: 700;
    font-size: 13px;
}

.ks-login-brand h1 {
    margin: 0;
    color: var(--ks-ui-text);
    font-size: 23px;
    line-height: 1.25;
    font-weight: 800;
}

.ks-login-brand p:last-child {
    margin: 5px auto 0;
    color: var(--ks-ui-muted);
    font-size: 14px;
}

.ks-login-form-head {
    margin-bottom: 12px;
    text-align: center;
}

.ks-login-form-head h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.3;
    color: var(--ks-ui-text);
}

.ks-login-form-head span {
    display: inline-block;
    margin-top: 5px;
    color: var(--ks-ui-muted);
}

.ks-login-form {
    display: grid;
    gap: 11px;
}

.ks-field label {
    color: var(--ks-ui-text);
    font-weight: 700;
    margin-bottom: 7px;
}

.ks-input-icon {
    position: relative;
}

.ks-input-icon > i {
    position: absolute;
    inset-inline-start: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ks-ui-muted);
    font-size: 18px;
    pointer-events: none;
}

.ks-input-icon .form-control {
    min-height: 42px;
    padding-inline-start: 44px;
    padding-inline-end: 14px;
    border-radius: 8px;
    border-color: var(--ks-ui-border);
    background: rgba(255, 255, 255, 0.82);
    color: var(--ks-ui-text);
}

html[data-bs-theme="dark"] .ks-input-icon .form-control {
    background: rgba(15, 23, 42, 0.66);
    color: var(--ks-ui-text);
}

.ks-password-field .form-control {
    padding-inline-end: 48px;
}

.ks-password-toggle {
    position: absolute;
    inset-inline-end: 9px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ks-ui-muted);
}

.ks-login-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--ks-ui-muted);
}

.ks-login-button {
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--ks-ui-primary), var(--ks-ui-success));
    color: #ffffff;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
}

.ks-login-button:hover,
.ks-login-button:focus {
    color: #ffffff;
    background: linear-gradient(135deg, var(--ks-ui-primary-dark), #059669);
}

.ks-login-footer {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--ks-ui-border);
    color: var(--ks-ui-muted);
    text-align: center;
    font-size: 13px;
}

@media (max-width: 575.98px) {
    .ks-login-shell {
        padding: 18px 12px;
        align-items: flex-start;
    }

    .ks-login-card {
        padding: 20px;
    }

    .ks-login-card-tools {
        justify-content: space-between;
    }

    .ks-login-brand h1 {
        font-size: 22px;
    }
}
