﻿/*
 * Tdap-specific overrides. Most styling comes from the Branding RCL via
 * _content/E239F.Web.Branding/epoxy239-brand.css.
 * Keep this file thin; brand-wide rules belong in the RCL.
 */

html, body {
    margin: 0;
    padding: 0;
    background-color: var(--epoxy-black);
}

.full-width {
    width: 100%;
}

.mud-snackbar-location-bottom-left,
.mud-snackbar-location-bottom-right {
    bottom: 50px !important;
}

.mud-progress-linear {
    margin: 0 !important;
}

/* External login buttons — neutral surface treatment, no per-provider color blocks */
.external-login {
    display: flex;
    align-items: center;
    margin-top: 5px;
    margin-bottom: 5px;
    height: 40px;
    padding: 0 16px;
    font-size: 16px;
    text-decoration: none;
    border-radius: 4px;
    color: var(--epoxy-white);
    background-color: var(--epoxy-surface-elevated);
    border: 1px solid var(--epoxy-divider-on-dark);
    transition: border-color 120ms ease-out, background-color 120ms ease-out;
}

.external-login:hover {
    border-color: var(--epoxy-red);
    background-color: var(--epoxy-surface);
}

.external-login-icon {
    background-repeat: no-repeat;
    background-size: contain;
    width: 24px;
    height: 24px;
    margin-right: 12px;
}

.microsoft-external-login-icon { background-image: url('../assets/icons/external-auth/auth-microsoft.png'); }
.google-external-login-icon { background-image: url('../assets/icons/external-auth/auth-google.png'); }
.twitter-external-login-icon { background-image: url('../assets/icons/external-auth/auth-twitter.png'); }
.linkedin-external-login-icon { background-image: url('../assets/icons/external-auth/auth-linkedin.png'); }
.facebook-external-login-icon { background-image: url('../assets/icons/external-auth/auth-facebook.png'); }

/* Icon-only external login button — used on the brand login page */
.external-login-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background-color: var(--epoxy-surface-elevated);
    border: 1px solid var(--epoxy-divider-on-dark);
    text-decoration: none;
    transition: border-color 160ms ease-out, background-color 160ms ease-out, transform 160ms ease-out, box-shadow 160ms ease-out;
}

.external-login-icon-btn:hover,
.external-login-icon-btn:focus-visible {
    border-color: var(--epoxy-red);
    background-color: var(--epoxy-surface);
    transform: translateY(-2px);
    box-shadow: 0 0 0 1px var(--epoxy-red), 0 0 18px rgba(214, 40, 40, 0.20);
    outline: none;
}

.external-login-icon-btn .external-login-icon {
    margin: 0;
    width: 22px;
    height: 22px;
}

/* ============================================================================
   Shared "auth shell" — used by every page rendered in LoginLayout that does
   NOT need the two-column brand split (Forgot password, 2FA, reset, etc.).
   The login page itself owns its layout via login.razor.css.
============================================================================ */

.auth-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--epoxy-white);
    background:
        radial-gradient(circle at 18% 10%, rgba(214, 40, 40, 0.18), transparent 40%),
        radial-gradient(circle at 80% 92%, rgba(255, 255, 255, 0.08), transparent 50%),
        linear-gradient(160deg, #2A2D33 0%, #1B1D21 100%);
}

.auth-shell::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="2" height="2"><rect width="2" height="2" fill="%23ffffff" fill-opacity="0.015"/></svg>');
    pointer-events: none;
    z-index: 0;
}

.auth-shell__head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: clamp(1rem, 2vw, 1.5rem) clamp(1rem, 3vw, 2rem);
}

.auth-shell__main {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 4vh, 3rem) 1rem;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    display: flex;
    flex-direction: column;
    gap: 1.125rem;
    background-color: var(--epoxy-surface);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: clamp(1.5rem, 4vw, 2.25rem);
    box-shadow:
        0 0 48px rgba(255, 255, 255, 0.04),
        0 4px 24px rgba(0, 0, 0, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.auth-card__head {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.auth-eyebrow {
    font-family: var(--epoxy-font-body), sans-serif;
    font-weight: 700;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--epoxy-text-secondary-on-dark);
}

.auth-title {
    font-family: var(--epoxy-font-display), sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.005em;
    line-height: 1;
    font-size: clamp(1.5rem, 2.5vw, 1.875rem);
    margin: 0;
    color: var(--epoxy-white);
}

.auth-sub {
    margin: 0;
    font-family: var(--epoxy-font-body), sans-serif;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--epoxy-text-secondary-on-dark);
}

.auth-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: rgba(214, 40, 40, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 28px rgba(214, 40, 40, 0.22);
    align-self: flex-start;
}

.auth-success-icon .mud-icon-root {
    font-size: 36px !important;
    width: 36px;
    height: 36px;
    color: var(--epoxy-red);
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.auth-field-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
}

.auth-label {
    font-family: var(--epoxy-font-body), sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--epoxy-text-secondary-on-dark);
}

.auth-submit {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 48px;
    border: 1px solid var(--epoxy-red);
    border-radius: 10px;
    background-color: var(--epoxy-red);
    color: var(--epoxy-white);
    font-family: var(--epoxy-font-display), sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background-color 160ms ease-out, transform 160ms ease-out, box-shadow 160ms ease-out;
    box-shadow: 0 0 28px rgba(214, 40, 40, 0.25);
}

.auth-submit .mud-icon-root {
    font-size: 18px !important;
    width: 18px;
    height: 18px;
    color: inherit;
    transition: transform 160ms ease-out;
}

.auth-submit:hover,
.auth-submit:focus-visible {
    background-color: var(--epoxy-red-deep);
    transform: translateY(-1px);
    box-shadow: 0 0 36px rgba(214, 40, 40, 0.45);
    outline: none;
}

.auth-submit:hover .mud-icon-root,
.auth-submit:focus-visible .mud-icon-root {
    transform: translateX(3px);
}

.auth-foot {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    border-top: 1px solid var(--epoxy-divider-on-dark);
    margin-top: 0.25rem;
    padding-top: 0.875rem;
}

.auth-foot a,
.auth-foot a:visited {
    font-family: var(--epoxy-font-body), sans-serif;
    font-size: 0.8125rem;
    color: var(--epoxy-text-secondary-on-dark);
    text-decoration: none;
    transition: color 120ms ease-out;
}

.auth-foot a:hover,
.auth-foot a:focus-visible {
    color: var(--epoxy-red);
    text-decoration: underline;
    outline: none;
}

.auth-foot__split {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-foot__split span {
    color: var(--epoxy-divider-on-dark);
}

.auth-validation:empty {
    display: none;
}

.auth-validation ul {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 0.8125rem;
    color: #FF6B6B;
}

.auth-info {
    margin: 0;
    padding: 0.75rem 0.875rem;
    background-color: rgba(214, 40, 40, 0.08);
    border-left: 3px solid var(--epoxy-red);
    border-radius: 0 8px 8px 0;
    font-family: var(--epoxy-font-body), sans-serif;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: var(--epoxy-text-secondary-on-dark);
}

.auth-info a {
    color: var(--epoxy-red);
    font-weight: 600;
    text-decoration: none;
}

.auth-info a:hover,
.auth-info a:focus-visible {
    color: var(--epoxy-white);
    text-decoration: underline;
    outline: none;
}

.auth-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--epoxy-font-body), sans-serif;
    font-size: 0.875rem;
    color: var(--epoxy-text-secondary-on-dark);
    margin-block: 0.25rem;
}
