h1:focus {
    outline: none;
}

.validation-message {
    color: #d32f2f;
}

.auth-card {
    max-width: 480px;
}

.form-field {
    margin-bottom: 1rem;
}

    .form-field label {
        display: block;
        margin-bottom: 0.25rem;
        font-weight: 500;
    }

    .form-field input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
    .form-field select,
    .form-field textarea {
        box-sizing: border-box;
        width: 100%;
        height: 2.5rem;
        padding: 0.5rem 0.75rem;
        border: 1px solid #9e9e9e;
        border-radius: 4px;
        background-color: #fff;
        font: inherit;
    }

    .form-field input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus,
    .form-field select:focus,
    .form-field textarea:focus {
        outline: none;
        border-color: #1976d2;
        box-shadow: 0 0 0 1px #1976d2;
    }

    .form-field textarea {
        height: auto;
    }

    .form-field input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"])[readonly] {
        background-color: #f5f5f5;
    }

.field-error {
    color: #d32f2f;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.field-hint {
    color: #616161;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.auth-submit {
    padding: 0.6rem 1.5rem;
    border: 0;
    border-radius: 4px;
    background: #1976d2;
    color: #fff;
    font: inherit;
    cursor: pointer;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

    .data-table th,
    .data-table td {
        text-align: left;
        padding: 0.5rem 0.75rem;
        border-bottom: 1px solid #e0e0e0;
    }

.row-action {
    padding: 0.3rem 0.75rem;
    margin-right: 0.5rem;
    border: 1px solid #1976d2;
    border-radius: 4px;
    background: #fff;
    color: #1976d2;
    font: inherit;
    cursor: pointer;
}

    .row-action.danger {
        border-color: #d32f2f;
        color: #d32f2f;
    }

/* Links styled as row buttons on static SSR pages. */
a.row-action {
    display: inline-block;
    text-decoration: none;
    white-space: nowrap;
}

.confirm-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.confirm-box {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    max-width: 480px;
}

.legal-content {
    max-width: 860px;
    line-height: 1.6;
}

    .legal-content h2 {
        font-size: 1.25rem;
        margin: 1.5rem 0 0.5rem;
    }

    .legal-content ul {
        padding-left: 1.5rem;
    }

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.75rem 0;
}

    .legal-table th,
    .legal-table td {
        text-align: left;
        vertical-align: top;
        padding: 0.5rem 0.75rem;
        border: 1px solid #e0e0e0;
    }

/* Chỗ còn phải điền ở S6D-b: để nổi bật, không được để lọt khi công bố. */
.legal-placeholder {
    background: #fff176;
    color: inherit;
    padding: 0 0.15rem;
}

.site-footer {
    border-top: 1px solid #e0e0e0;
    padding-top: 1rem;
    font-size: 0.875rem;
    color: #616161;
}

.legal-link {
    color: #1976d2;
    text-decoration: underline;
}

.signed-in-account {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.2;
}

    .signed-in-account small {
        font-size: 0.75rem;
        opacity: 0.8;
    }

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "Đã xảy ra lỗi."
    }

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
