@charset "UTF-8";

:root {
    --kc-auth-bg: #f4f6f8;
    --kc-auth-panel: #ffffff;
    --kc-auth-text: #15171a;
    --kc-auth-muted: #667085;
    --kc-auth-line: #d8dde6;
    --kc-auth-red: #d90f16;
    --kc-auth-red-dark: #a8080d;
    --kc-auth-green: #157347;
    --kc-auth-warning: #9a6700;
    --kc-auth-shadow: 0 22px 60px rgba(15, 23, 42, 0.14);
}

* {
    box-sizing: border-box;
}

body.kc-auth-page {
    min-height: 100vh;
    margin: 0;
    background: var(--kc-auth-bg);
    color: var(--kc-auth-text);
    font-family: "Plus Jakarta Sans", "Mona Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-x: hidden;
}

.kc-auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(320px, 1.28fr);
}

.kc-auth-hero {
    position: sticky;
    top: 0;
    min-height: 100vh;
    padding: clamp(28px, 5vw, 70px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #111316;
    color: #ffffff;
    overflow: hidden;
    min-width: 0;
}

.kc-auth-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(217, 15, 22, 0.58), rgba(17, 19, 22, 0.08) 46%, rgba(17, 19, 22, 0.88)),
        url("https://admin.katherinecorp.com/wp-content/uploads/2026/05/f48b5dbeaac01c7ccfa04c8e98f9328f-e1779553474926.webp") center / cover;
    opacity: 0.9;
}

.kc-auth-hero > * {
    position: relative;
    z-index: 1;
}

.kc-auth-logo {
    width: min(200px, 58vw);
    height: auto;
    display: block;
}

.kc-auth-hero-copy {
    max-width: 520px;
}

.kc-auth-kicker {
    margin: 0 0 16px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.kc-auth-hero h1 {
    margin: 0;
    font-size: clamp(32px, 5vw, 60px);
    line-height: 0.98;
    letter-spacing: -0.02em;
}

.kc-auth-hero p {
    margin: 18px 0 0;
    max-width: 42rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    line-height: 1.65;
}

/* ===== MAIN PANEL ===== */

.kc-auth-main {
    padding: clamp(20px, 4vw, 48px);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.kc-auth-card {
    width: 100%;
    max-width: 100%;
    background: var(--kc-auth-panel);
    border: 1px solid rgba(216, 221, 230, 0.82);
    border-radius: 10px;
    box-shadow: var(--kc-auth-shadow);
    padding: clamp(20px, 3.5vw, 38px);
}

.kc-auth-card--narrow {
    max-width: 520px;
}

.kc-auth-card:not(.kc-auth-card--narrow) {
    max-width: 740px;
}

.kc-auth-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.kc-auth-header h2 {
    margin: 0;
    font-size: clamp(22px, 2.8vw, 30px);
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.kc-auth-header p {
    margin: 6px 0 0;
    color: var(--kc-auth-muted);
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.kc-auth-link {
    color: var(--kc-auth-red);
    font-weight: 800;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
}

.kc-auth-link:hover {
    color: var(--kc-auth-red-dark);
}

/* ===== STEPPER / TIMELINE ===== */

.kc-stepper {
    margin-bottom: 22px;
}

.kc-stepper-track {
    display: flex;
    align-items: center;
    gap: 0;
}

.kc-stepper-step {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    padding: 6px 2px;
    cursor: pointer;
    font: inherit;
    color: var(--kc-auth-muted);
    transition: color 200ms ease;
}

.kc-stepper-step.is-active {
    color: var(--kc-auth-text);
}

.kc-stepper-step.is-done {
    color: var(--kc-auth-green);
}

.kc-stepper-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 2px solid var(--kc-auth-line);
    font-size: 12px;
    font-weight: 800;
    transition: all 260ms ease;
    flex-shrink: 0;
}

.kc-stepper-step.is-active .kc-stepper-dot {
    background: var(--kc-auth-red);
    border-color: var(--kc-auth-red);
    color: #fff;
    box-shadow: 0 4px 14px rgba(217, 15, 22, 0.28);
}

.kc-stepper-step.is-done .kc-stepper-dot {
    background: var(--kc-auth-green);
    border-color: var(--kc-auth-green);
    color: #fff;
}

.kc-stepper-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.kc-stepper-line {
    flex: 1;
    height: 2px;
    background: var(--kc-auth-line);
    margin: 0 10px;
    border-radius: 2px;
    overflow: hidden;
}

.kc-stepper-line-fill {
    display: block;
    width: 0%;
    height: 100%;
    background: var(--kc-auth-green);
    border-radius: inherit;
    transition: width 400ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===== STEP PANELS ===== */

.kc-step-panel {
    display: none;
    animation: kcStepFadeIn 320ms ease both;
}

.kc-step-panel.is-active {
    display: block;
}

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

.kc-step-actions {
    margin-top: 18px;
    display: flex;
    justify-content: flex-end;
}

.kc-step-actions--split {
    justify-content: space-between;
}

/* ===== FORM ELEMENTS ===== */

.kc-auth-form {
    display: grid;
    gap: 16px;
}

.kc-auth-section {
    display: grid;
    gap: 12px;
}

.kc-auth-section-title {
    margin: 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--kc-auth-line);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.kc-auth-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.kc-auth-field {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.kc-auth-field--full {
    grid-column: 1 / -1;
}

.kc-auth-field label,
.kc-auth-check span {
    font-size: 12px;
    font-weight: 750;
    color: #252a31;
}

.kc-auth-field input {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    border: 1px solid var(--kc-auth-line);
    border-radius: 6px;
    background: #fff;
    color: var(--kc-auth-text);
    padding: 8px 11px;
    font: inherit;
    font-size: 13px;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.kc-auth-field input:focus {
    border-color: #111316;
    box-shadow: 0 0 0 3px rgba(17, 19, 22, 0.08);
}

.kc-auth-field input[readonly] {
    background: #f8fafc;
    color: #4b5563;
}

.kc-auth-field input:disabled {
    background: #f1f5f9;
    color: #9ca3af;
    cursor: not-allowed;
}

.kc-auth-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
}

/* ===== SELECT ===== */

.kc-auth-select {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    border: 1px solid var(--kc-auth-line);
    border-radius: 6px;
    background: #fff;
    color: var(--kc-auth-text);
    padding: 8px 32px 8px 11px;
    font: inherit;
    font-size: 13px;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23667085' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px 8px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.kc-auth-select:focus {
    border-color: #111316;
    box-shadow: 0 0 0 3px rgba(17, 19, 22, 0.08);
}

.kc-auth-select:disabled {
    background: #f8fafc;
    color: #9ca3af;
    cursor: not-allowed;
}

/* ===== BUTTONS ===== */

.kc-auth-small-btn,
.kc-auth-submit,
.kc-auth-secondary {
    border: 0;
    border-radius: 6px;
    font: inherit;
    font-size: 13px;
    font-weight: 850;
    cursor: pointer;
    transition: transform 120ms ease, background-color 160ms ease, opacity 160ms ease;
}

.kc-auth-small-btn {
    min-width: 90px;
    padding: 0 12px;
    background: #111316;
    color: #fff;
    font-size: 12px;
}

.kc-auth-small-btn:hover,
.kc-auth-submit:hover {
    transform: translateY(-1px);
}

.kc-auth-small-btn:disabled,
.kc-auth-submit:disabled {
    cursor: not-allowed;
    opacity: 0.48;
    transform: none;
}

.kc-auth-status {
    min-height: 16px;
    margin: 0;
    color: var(--kc-auth-muted);
    font-size: 11px;
    line-height: 1.45;
}

.kc-auth-status[data-state="success"] {
    color: var(--kc-auth-green);
}

.kc-auth-status[data-state="error"] {
    color: var(--kc-auth-red-dark);
}

.kc-auth-status[data-state="warning"] {
    color: var(--kc-auth-warning);
}

/* ===== LEGAL ===== */

.kc-auth-legal {
    display: grid;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--kc-auth-line);
}

.kc-auth-check {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
}

.kc-auth-check input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--kc-auth-red);
}

.kc-auth-check span {
    font-size: 12px;
    line-height: 1.5;
}

/* ===== ACTIONS ===== */

.kc-auth-actions {
    display: grid;
    gap: 10px;
}

.kc-auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 24px;
    background: var(--kc-auth-red);
    color: #fff;
}

.kc-auth-submit:hover {
    background: var(--kc-auth-red-dark);
}

.kc-auth-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid var(--kc-auth-line);
    background: #fff;
    color: var(--kc-auth-text);
}

.kc-auth-secondary:hover {
    background: #f8fafc;
}

.kc-auth-message {
    min-height: 18px;
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--kc-auth-muted);
}

.kc-auth-message[data-state="success"] {
    color: var(--kc-auth-green);
}

.kc-auth-message[data-state="error"] {
    color: var(--kc-auth-red-dark);
}

.kc-auth-message[data-state="warning"] {
    color: var(--kc-auth-warning);
}

.kc-auth-hidden {
    display: none !important;
}

/* ===== PASSWORD HINTS ===== */

.kc-pw-hints {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid var(--kc-auth-line);
    border-radius: 6px;
}

.kc-pw-rule {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    transition: color 200ms ease;
    white-space: nowrap;
}

.kc-pw-rule svg {
    flex-shrink: 0;
    transition: transform 200ms ease;
}

.kc-pw-rule.is-ok {
    color: var(--kc-auth-green);
}

.kc-pw-rule.is-ok svg {
    transform: scale(1.1);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 920px) {
    .kc-auth-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    .kc-auth-hero {
        position: relative;
        min-height: 320px;
    }
}

@media (max-width: 680px) {
    .kc-auth-main {
        padding: 16px;
        align-items: stretch;
    }

    .kc-auth-card {
        padding: 20px 16px;
        width: 100%;
        max-width: 100%;
    }

    .kc-auth-card--narrow {
        width: 100%;
    }

    .kc-auth-header {
        display: grid;
        gap: 10px;
    }

    .kc-auth-grid,
    .kc-auth-control {
        grid-template-columns: 1fr;
    }

    .kc-auth-small-btn {
        min-height: 40px;
    }

    .kc-stepper-label {
        font-size: 11px;
    }

    .kc-step-actions--split {
        flex-direction: column-reverse;
        gap: 8px;
    }

    .kc-step-actions--split .kc-auth-secondary,
    .kc-step-actions--split .kc-auth-submit {
        width: 100%;
    }
}
