/* 
 * error-pages.css
 * Microsoft Sign-in Card Design System for Error & Access Denial Pages
 */

.medex-error-page {
    min-height: 100dvh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    background: #f2f2f2;
    font-family: "Segoe UI", "Helvetica Neue", "Lucida Grande", "Roboto", sans-serif;
}

.medex-error-card {
    background-color: #ffffff;
    width: 100%;
    max-width: 440px;
    box-sizing: border-box;
    padding: 36px 44px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    margin: auto;
}

.login-logo-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 32px;
    gap: 24px;
}

.login-logo-row svg {
    display: block;
    width: 108px;
    height: 24px;
    flex: 0 0 auto;
}

.medex-login-logo {
    display: block;
    width: auto;
    max-width: 130px;
    max-height: 42px;
    object-fit: contain;
    flex: 0 1 auto;
}

.medex-error-card .title {
    color: #1b1b1b;
    font-size: 1.5rem;
    font-weight: 600;
    padding: 0;
    margin-top: 20px;
    margin-bottom: 12px;
}

.medex-error-card .text {
    color: #1b1b1b;
    font-weight: 400;
    line-height: 1.35rem;
    margin-bottom: 18px;
    font-size: 0.875rem;
}

.medex-error-metadata {
    margin-bottom: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 2px;
    padding: 10px 14px;
}

.medex-error-metadata-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.78125rem;
    line-height: 1.5;
    margin-bottom: 4px;
}

.medex-error-metadata-row:last-child {
    margin-bottom: 0;
}

.medex-error-label {
    color: #64748b;
    font-weight: 600;
}

.medex-error-value {
    color: #0f172a;
    font-weight: 600;
}

.medex-monospace {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.button_row_stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-top: 16px;
}

.button_row_stack .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 36px;
    padding: 6px 14px;
    border: none;
    font-size: 15px;
    font-family: "Segoe UI", "Helvetica Neue", sans-serif;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
}

.button_row_stack .primary_button {
    background-color: #0067b8;
    color: #ffffff;
}

.button_row_stack .primary_button:hover {
    background-color: #005da6;
}

.button_row_stack .secondary_button {
    background-color: rgba(0, 0, 0, 0.1);
    color: #000000;
}

.button_row_stack .secondary_button:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

@media (max-width: 520px) {
    .medex-error-page {
        padding: 16px;
    }

    .medex-error-card {
        padding: 28px 20px;
    }
}
