/* Standalone stylesheet for the /Pages/Account/* Razor Pages. Those pages
   live outside the Blazor tree so they can set cookies — meaning MudBlazor's
   component-driven layout is unavailable to them. This gives them a matching
   visual language (roughly aligned with MudBlazor's palette + typography). */

*, *::before, *::after {
    box-sizing: border-box;
}

body.mud-layout,
body.auth-layout {
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: rgba(0, 0, 0, 0.87);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    min-height: 100vh;
}

.auth-topbar {
    display: flex;
    align-items: center;
    height: 56px;
    padding: 0 24px;
    background-color: #426AB2;
}

.auth-topbar__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
}

.auth-topbar__brand:hover {
    text-decoration: none;
    opacity: 0.92;
}

.auth-topbar__brand img {
    display: block;
}

.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    /* Fill the viewport below the 56px top bar without introducing a scrollbar. */
    min-height: calc(100vh - 56px);
    padding: 24px;
}

.auth-card {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12);
    padding: 32px;
    width: 100%;
    max-width: 420px;
}

.auth-card h1 {
    font-size: 24px;
    font-weight: 500;
    margin: 0 0 24px 0;
}

.auth-card label {
    display: block;
    margin-top: 16px;
    margin-bottom: 6px;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.6);
}

.auth-card input[type="text"],
.auth-card input[type="email"],
.auth-card input[type="password"],
.auth-card input:not([type]) {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(0, 0, 0, 0.23);
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
    background: #fff;
    color: rgba(0, 0, 0, 0.87);
    transition: border-color 0.15s ease-in-out;
}

.auth-card input:focus {
    outline: none;
    border-color: #594ae2;
    box-shadow: 0 0 0 1px #594ae2;
}

.auth-card button.primary-btn,
.auth-card .primary-btn {
    display: block;
    width: 100%;
    margin-top: 24px;
    padding: 10px 16px;
    background-color: #594ae2;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
}

.auth-card button.primary-btn:hover,
.auth-card .primary-btn:hover {
    background-color: #4a3cc4;
}

.auth-card .external-login {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.auth-card .oauth-btn {
    display: inline-block;
    margin: 6px 4px 0 0;
    padding: 8px 16px;
    background: #fff;
    color: rgba(0, 0, 0, 0.87);
    border: 1px solid rgba(0, 0, 0, 0.23);
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.15s ease-in-out;
}

.auth-card .oauth-btn:hover {
    background-color: #f5f5f5;
}

.auth-card .external-login .oauth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 10px 16px;
}

.auth-card .external-login .oauth-btn:hover {
    text-decoration: none;
}

.auth-card .external-login .oauth-btn svg {
    flex-shrink: 0;
}

.auth-card hr {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    margin: 24px 0;
}

.auth-card p {
    margin: 8px 0;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.6);
}

.auth-card a {
    color: #594ae2;
    text-decoration: none;
}

.auth-card a:hover {
    text-decoration: underline;
}

.auth-card .mud-alert,
.auth-card .mud-alert-error {
    display: block;
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: 4px;
    background-color: #e8f2fb;
    color: #1c6fb7;
    font-size: 14px;
}

.auth-card .field-validation-error {
    display: block;
    color: #1c6fb7;
    font-size: 12px;
    margin-top: 4px;
}
