/* Authentication styling follows KaizenWebApp; buttons retain the Radzen theme. */
.kaizen-auth-page {
    grid-column: 1 / -1;
    grid-row: 1 / -1;
    display: flex;
    align-items: safe center;
    justify-content: center;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    padding: 40px 20px;
    overflow-y: auto;
    background: #f4f6f8;
    color: #303348;
}

.kaizen-auth-card {
    width: 100%;
    max-width: 420px;
    padding: 32px 36px;
    border: 1px solid #e4e8ee;
    border-top: 6px solid var(--rz-primary);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(25, 31, 48, .1);
}

.kaizen-auth-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.kaizen-auth-brand img {
    display: block;
    max-width: 100%;
    object-fit: contain;
}

.kaizen-auth-product {
    color: #73798b;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
}

.kaizen-auth-title {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}

.kaizen-auth-description {
    margin: 0 0 24px;
    color: #73798b;
    font-size: 14px;
    line-height: 1.55;
    text-align: center;
}

.kaizen-auth-card .rz-login .rz-form {
    gap: 20px;
}

.kaizen-auth-card .rz-login .rz-form-row,
.kaizen-auth-field {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
}

.kaizen-auth-field {
    margin-bottom: 20px;
}

.kaizen-auth-card .rz-login .rz-form-row .rz-label,
.kaizen-auth-card .rz-login .rz-form-row .rz-form-input-wrapper {
    flex: initial;
    width: 100%;
}

.kaizen-auth-card .rz-label {
    color: #303348;
    font-size: 13px;
    font-weight: 700;
}

.kaizen-auth-card .rz-textbox,
.kaizen-auth-card .rz-password {
    min-height: 48px;
    border-radius: 7px;
    font-size: 14px;
}

.kaizen-auth-card .rz-login-buttons,
.kaizen-auth-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
}

.kaizen-auth-actions {
    margin-top: 24px;
}

.kaizen-auth-card .rz-button {
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border-radius: 7px;
    font-size: 15px;
    font-weight: 600;
}

.kaizen-auth-card .rz-login-buttons .rz-variant-text {
    font-size: 14px;
    font-weight: 400;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.kaizen-auth-card .rz-button:focus-visible {
    outline: 2px solid var(--rz-primary);
    outline-offset: 3px;
}

.kaizen-auth-captcha {
    display: flex;
    justify-content: safe center;
    max-width: 100%;
    overflow-x: auto;
}

.kaizen-auth-captcha > div {
    flex: 0 0 auto;
}

.kaizen-auth-message {
    margin: 20px 0 0;
    padding: 12px 14px;
    border: 1px solid #e4e8ee;
    border-radius: 7px;
    background: #f4f6f8;
    font-size: 14px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.kaizen-auth-error {
    border-color: var(--rz-danger-lighter);
    background: var(--rz-danger-lighter);
    color: var(--rz-danger-dark);
}

.kaizen-auth-card .rz-message {
    white-space: normal;
}

@media (max-width: 480px) {
    .kaizen-auth-page {
        padding: 24px 12px;
    }

    .kaizen-auth-card {
        padding: 28px 20px;
    }
}

@media (max-width: 360px) {
    .kaizen-auth-page {
        padding-right: 8px;
        padding-left: 8px;
    }

    /* Give the 300px Turnstile widget room without narrowing the form fields. */
    .kaizen-auth-captcha {
        max-width: none;
        margin-right: -20px;
        margin-left: -20px;
    }
}

@media (max-height: 600px) {
    .kaizen-auth-page {
        align-items: flex-start;
        padding-top: 20px;
        padding-bottom: 20px;
    }
}
