:root {
    --bg: #F5F7FB;
    --surface: #FFFFFF;
    --surface-soft: #F8FAFF;
    --border: #E6EAF2;
    --text: #101828;
    --muted: #667085;
    --primary: #1570EF;
    --primary-2: #1EA7FF;
    --danger: #EF4444;
    --navy: #0B1F3A;
}

*,
*:before,
*:after {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
}

body.kt-auth-page {
    margin: 0;
    color: var(--text);
    background: linear-gradient(135deg, #F5F8FF 0%, #EEF5FF 100%);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.kt-auth-shell {
    display: grid;
    place-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}

.kt-auth-panel {
    display: grid;
    place-items: center;
    width: min(100%, 460px);
    max-width: 460px;
}

.kt-auth-side {
    display: none;
}

.kt-login-card {
    width: 100%;
    max-width: 100%;
    padding: 32px;
    border: 1px solid rgba(230, 234, 242, .94);
    border-radius: 24px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 24px 64px rgba(16, 24, 40, .14);
    backdrop-filter: blur(18px);
}

.kt-login-brand {
    display: grid;
    justify-items: center;
    gap: 8px;
    margin-bottom: 26px;
    text-align: center;
}

.kt-logo-mark {
    display: grid;
    place-items: center;
    width: auto;
    min-width: 0;
    height: auto;
    border-radius: 0;
    color: var(--text);
    background: transparent;
    box-shadow: none;
    font-weight: 850;
}

.kt-logo-mark img {
    display: block;
    width: auto;
    max-width: 260px;
    max-height: 52px;
    height: auto;
    object-fit: contain;
}

.kt-logo-title {
    color: var(--text);
    font-size: 15px;
    font-weight: 850;
    letter-spacing: .08em;
}

.kt-logo-subtitle {
    margin-top: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
    text-transform: uppercase;
}

.kt-login-heading h1 {
    margin: 0 0 10px;
    color: var(--text);
    font-size: 28px;
    font-weight: 850;
    line-height: 1.18;
}

.kt-login-heading p {
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.kt-alert {
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid #FECACA;
    border-radius: 14px;
    color: #B42318;
    background: #FEF3F2;
    font-size: 14px;
}

.kt-field {
    position: relative;
    margin-bottom: 16px;
}

.kt-field label {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-size: 13px;
    font-weight: 750;
}

.kt-input {
    width: 100%;
    height: 48px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--text);
    background: var(--surface);
    box-shadow: none;
    font-size: 15px;
}

.kt-input:focus {
    border-color: #1D8CFF;
    box-shadow: 0 0 0 3px rgba(21, 112, 239, .12);
    outline: 0;
}

.kt-password-field .kt-input {
    padding-right: 48px;
}

.kt-password-toggle {
    position: absolute;
    right: 5px;
    bottom: 4px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 12px;
    color: var(--muted);
    background: transparent;
}

.kt-login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin: 4px 0 20px;
    font-size: 14px;
    font-weight: 650;
}

.kt-login-options a {
    color: var(--primary);
    overflow-wrap: anywhere;
}

.kt-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--text);
}

.kt-check input {
    width: 16px;
    height: 16px;
}

.kt-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 16px 32px rgba(21, 112, 239, .24);
    font-size: 15px;
    font-weight: 850;
}

@media (max-width: 767px) {
    .kt-auth-shell {
        align-items: center;
        padding-top: 16px;
        padding-bottom: calc(96px + env(safe-area-inset-bottom));
    }

    .kt-login-card {
        width: 100%;
        max-width: none;
        padding: 24px;
        border-radius: 22px;
    }

    .kt-login-heading h1 {
        font-size: 24px;
    }

    .kt-login-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .kt-logo-mark img {
        max-width: 210px;
        max-height: 40px;
        height: auto;
    }
}
