/* Login and other pre-auth screens (login, forgot password, reset password, login error). */

.login-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow: hidden;
    background: url("/wc/assets/brand/public/images/loginAnimationPoster.png") no-repeat center/cover;
}

.login-background-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.32s ease;
    pointer-events: none;
    z-index: 0;
}

.login-background-video.login-background-video-ready {
    opacity: 1;
}

.login-background-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(12, 22, 38, 0.32), rgba(12, 22, 38, 0.72));
}

.login-card {
    position: relative;
    z-index: 2;
    width: min(430px, 100%);
    padding: 28px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.login-brand {
    width: min(22.5rem, 100%);
    max-height: 5rem;
    object-fit: contain;
    margin-bottom: 0.375rem;
}

.login-title {
    margin: 0;
    font-size: 20px;
    line-height: 1.2;
    text-align: center;
}

.login-subtitle {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 8px;
}

.login-label {
    align-self: flex-start;
    font-size: 13px;
    font-weight: 600;
    color: #344761;
}

.login-password-row {
    width: 100%;
    display: none;
    gap: 8px;
}

.login-submit,
.login-sso {
    width: 100%;
    border: 0;
    border-radius: 8px;
    min-height: 42px;
    font-size: 14px;
    font-weight: 600;
}

.login-submit {
    --nwc-button-min-width: 100%;
}

.login-message {
    width: 100%;
    min-height: 20px;
    font-size: 13px;
}

.login-message-info {
    color: var(--muted);
}

.login-message-error {
    color: var(--danger);
}

.login-link {
    width: fit-content;
    color: #0b56d3;
    font-size: 13px;
    text-decoration: none;
}

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

.login-link-disabled,
.login-link-disabled:hover {
    pointer-events: none;
    cursor: default;
    opacity: 0.62;
    text-decoration: none;
}

.login-divider {
    margin-top: 4px;
    width: 100%;
    text-align: center;
    font-size: 12px;
    color: var(--muted);
}

.login-sso {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    text-decoration: none;
    border: 1px solid #c9d1df;
    background: #fff;
    color: #4e5d73;
    cursor: pointer;
}

.login-sso:hover {
    background: #f7f9fd;
}

.login-footer {
    margin-top: 10px;
    text-align: center;
    font-size: 11px;
    color: #75839a;
}

/* Font size is restated on the elements themselves: the nphase-wc bundle loads after this file and
   its element-level a/span rules would otherwise beat the size inherited from .login-footer. */
.login-footer-copyright {
    font-size: 11px;
}

.login-footer-links {
    margin-top: 4px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.login-footer-link {
    font-size: 11px;
    color: #75839a;
    text-decoration: none;
}

.login-footer-link:hover {
    text-decoration: underline;
}

/* Separator, drawn only when both links are visible — a link with a rejected or missing URL
   carries [hidden], so "Privacy |" and "| Terms" cannot occur. */
.login-footer-link:not([hidden]) + .login-footer-link:not([hidden])::before {
    content: "|";
    margin-inline-end: 8px;
    color: #9aa5b8;
}
