/* Sign-in pages, styled to match Director's sign-in layout. Colors and type come from design-tokens.css, which is a
   generated copy of the Director UI's design tokens (UI/director/packages/style-dictionary/global-variables.css).
   Regenerate it with `yarn compile:tokens` there and copy it over; never edit it by hand. */

:root {
    --text: var(--GlobalVariablesGlobalColorSlate700);
    --text-muted: var(--GlobalVariablesGlobalColorSlate500);
    --border: var(--GlobalVariablesGlobalColorSlate200);
    --accent: var(--GlobalVariablesGlobalColorBlue500);
    --accent-soft: var(--GlobalVariablesGlobalColorBlue50030pct);
    --error: var(--GlobalVariablesGlobalColorRed500);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--GlobalVariablesGlobalColorSlate100);
    color: var(--text);
    font-family: var(--GlobalVariablesGlobalTypographySansFont), system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.logo {
    width: 120px;
    margin: 48px 0 32px;
}

.card {
    width: min(400px, calc(100vw - 32px));
    padding: 32px;
    border-radius: 8px;
    background-color: var(--SemanticVariablesSemanticColorCardBackground);
    border: 1px solid var(--SemanticVariablesSemanticColorCardBorder);
}

.card h1 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
}

.lead {
    margin: 0 0 24px;
    color: var(--text-muted);
}

.muted {
    color: var(--text-muted);
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

input:not([type=checkbox]) {
    display: block;
    width: 100%;
    height: 40px;
    margin-bottom: 16px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font: inherit;
    color: var(--text);
}

input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

button,
.button {
    display: block;
    width: 100%;
    height: 40px;
    margin-bottom: 12px;
    border-radius: 6px;
    font: inherit;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    line-height: 38px;
    cursor: pointer;
}

.primary {
    border: 1px solid var(--SemanticVariablesSemanticColorPrimaryButtonBackgroundDefault);
    background-color: var(--SemanticVariablesSemanticColorPrimaryButtonBackgroundDefault);
    color: var(--SemanticVariablesSemanticColorPrimaryButtonTextDefault);
}

.primary:hover {
    background-color: var(--SemanticVariablesSemanticColorPrimaryButtonBackgroundHover);
}

.secondary {
    border: 1px solid var(--SemanticVariablesSemanticColorSecondaryButtonBorderDefault);
    background-color: transparent;
    color: var(--SemanticVariablesSemanticColorSecondaryButtonTextDefault);
}

.secondary:hover {
    background-color: var(--SemanticVariablesSemanticColorSecondaryButtonBackgroundHover);
}

/* Google's "Sign in with Google" button, light theme, as its branding guidelines specify (colors, Roboto Medium 14px,
   loaded in the layout, 20px logo, 12px padding, 10px gap); not restyled to match the site. */
.google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 12px;
    border: 1px solid #747775;
    border-radius: 4px;
    background-color: #ffffff;
    color: #1f1f1f;
    font-family: Roboto, Arial, sans-serif;
    font-weight: 500;
    line-height: 20px;
}

.google:hover {
    background-color: #f8f9fa;
}

/* Microsoft's "Sign in with Microsoft" button, light theme, as its identity branding guidelines specify (colors, Segoe UI
   Semibold 15px, a system font that isn't loaded, 21px logo, 41px high, 12px padding, 12px gap, square corners); not
   restyled to match the site. */
.microsoft {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 41px;
    padding: 0 12px;
    border: 1px solid #8c8c8c;
    border-radius: 0;
    background-color: #ffffff;
    color: #5e5e5e;
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 20px;
}

/* "or" between the email form and the external sign-in buttons, shown only when there are buttons. */
.or {
    display: none;
    align-items: center;
    gap: 12px;
    margin: 8px 0 20px;
    color: var(--text-muted);
}

.or:has(+ .external) {
    display: flex;
}

.or::before,
.or::after {
    content: "";
    flex: 1;
    border-top: 1px solid var(--border);
}

.error {
    margin: -8px 0 16px;
    color: var(--error);
}

.links {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.divider {
    margin: 8px 0 20px;
    border: 0;
    border-top: 1px solid var(--border);
}

/* A form button that reads as a link ("Forgot password?"). */
button.link {
    display: inline;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--accent);
    font-weight: inherit;
    line-height: inherit;
}

button.link:hover {
    text-decoration: underline;
}

/* Account picker rows. */
.account {
    margin: 0;
}

.account-button {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding: 12px 16px;
    border: 1px solid var(--border);
    background-color: transparent;
    color: var(--text);
    text-align: left;
    line-height: 1.4;
}

.account-button:hover {
    border-color: var(--accent);
    background-color: var(--GlobalVariablesGlobalColorSlate100);
}

.account-name {
    font-weight: 700;
}

.account-detail {
    color: var(--text-muted);
    font-weight: 400;
}

/* Claim screen rows. */
.claim-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-weight: 400;
    cursor: pointer;
}

.claim-row input {
    margin-top: 4px;
}

.claim-text {
    display: flex;
    flex-direction: column;
}

.claim-status {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 13px;
}

/* MFA setup, challenge and recovery codes. */
label.check {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
    font-weight: 400;
}

.qr {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

.qr svg {
    width: 180px;
    height: 180px;
}

code {
    font-family: "Anonymous Pro", ui-monospace, monospace;
    font-size: 13px;
}

.recovery-codes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 0 0 24px;
    padding: 16px;
    list-style: none;
    border: 1px solid var(--border);
    border-radius: 6px;
}

/* Account security page sections. */
.card h2 {
    margin: 28px 0 8px;
    font-size: 16px;
    font-weight: 700;
}

.notice {
    margin: 0 0 16px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
}
