/* ==========================================================================
   Kinnoo authentication pages (login / register / password) — orange brand
   ========================================================================== */
:root {
    --kn-primary: #f97316;
    --kn-primary-hover: #ea580c;
    --kn-text: #1c1917;
    --kn-muted: #78716c;
    --kn-border: #e7e5e4;
    --kn-bg-soft: #fff7f3;
}

.auth-page {
    min-height: calc(100vh - 114px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    background: var(--kn-bg-soft);
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.auth-card {
    width: 100%;
    max-width: 26rem;
    background: #fff;
    border: 1px solid var(--kn-border);
    border-radius: 1rem;
    padding: 2.5rem 2.25rem;
    box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.25);
}

.auth-head {
    text-align: center;
    margin-bottom: 1.75rem;
}

    .auth-head img {
        height: 38px;
        width: auto;
        margin-bottom: 1.25rem;
    }

    .auth-head h1 {
        font-size: 1.6rem;
        font-weight: 900;
        color: var(--kn-text);
        margin-bottom: 0.35rem;
    }

    .auth-head p {
        color: var(--kn-muted);
        font-size: 0.92rem;
        margin: 0;
    }

.auth-alert {
    background: #fef2f2;
    color: #b91c1c;
    border-radius: 0.5rem;
    padding: 0.7rem 0.9rem;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
}

    .auth-alert ul {
        margin: 0;
        padding-left: 1.1rem;
    }

.auth-field {
    margin-bottom: 1.1rem;
}

    .auth-field label {
        display: block;
        font-size: 0.82rem;
        font-weight: 700;
        color: var(--kn-text);
        margin-bottom: 0.35rem;
    }

.auth-input-wrap {
    position: relative;
}

    .auth-input-wrap input {
        width: 100%;
        border: 1px solid var(--kn-border);
        border-radius: 0.6rem;
        padding: 0.8rem 0.95rem;
        font-size: 0.95rem;
        outline: none;
        transition: all 0.2s;
        font-family: inherit;
    }

        .auth-input-wrap input:focus {
            border-color: var(--kn-primary);
            box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
        }

.auth-toggle {
    position: absolute;
    right: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: var(--kn-muted);
    cursor: pointer;
    font-size: 1.05rem;
    padding: 0.25rem;
}

    .auth-toggle:hover {
        color: var(--kn-text);
    }

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    font-size: 0.88rem;
}

.auth-check {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--kn-text);
    cursor: pointer;
}

    .auth-check input {
        width: 1rem;
        height: 1rem;
        accent-color: var(--kn-primary);
    }

.auth-link {
    color: var(--kn-primary);
    text-decoration: none;
    font-weight: 700;
}

    .auth-link:hover {
        text-decoration: underline;
    }

.auth-btn {
    width: 100%;
    border: none;
    background: var(--kn-primary);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.85rem;
    border-radius: 0.6rem;
    cursor: pointer;
    transition: background 0.2s;
}

    .auth-btn:hover {
        background: var(--kn-primary-hover);
    }

.auth-divider {
    border: none;
    border-top: 1px solid var(--kn-border);
    margin: 1.5rem 0;
}

.auth-foot {
    text-align: center;
    font-size: 0.9rem;
    color: var(--kn-muted);
}

.text-danger {
    color: #dc2626;
    font-size: 0.82rem;
}

.auth-guest {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.85rem;
}

    .auth-guest a {
        color: var(--kn-muted);
        text-decoration: underline;
    }

/* Wide card (register) */
.auth-card--wide {
    max-width: 34rem;
}

.auth-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 520px) {
    .auth-grid-2 {
        grid-template-columns: 1fr;
    }
}

.auth-hint {
    font-size: 0.78rem;
    color: var(--kn-muted);
    margin-top: 0.3rem;
}

/* Icon header (forgot password / confirmations) */
.auth-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: var(--kn-bg-soft);
    color: var(--kn-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
    margin: 0 auto 1.25rem;
}

.auth-icon--success {
    background: #dcfce7;
    color: #16a34a;
}
