/**
 * DCAM login screen redesign - styles for the elements built by
 * js/login-dcam.js. Every selector is scoped to .dcam-* classes that only
 * exist on the login page, so the other anonymous pages are untouched.
 * The login card is dark glass in BOTH palettes (see docs/frontend-revolution.md),
 * so the colours here are theme-independent.
 */

/* The pics/logos files are the "DCAM Helpdesk" lockup (in-app header). The
   login screen keeps the corporate wordmark - the app identity is already the
   card title, a lockup above it would say the same thing twice. */
body.welcome-anonymous .page-anonymous .glpi-logo {
    --logo: url("/pics/logos/dcam-wordmark-white.png") !important;
}

.dcam-login-brand {
    text-align: center;
    margin: 0 0 1.75rem;
}

.dcam-login-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.011em;
    color: #ffffff;
    margin: 0 0 0.25rem;
}

.dcam-login-tagline {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.875rem;
    letter-spacing: -0.011em;
    margin: 0;
}

.dcam-sso-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 0 1.25rem;
}

button.dcam-sso-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    width: 100%;
    max-width: 340px;
    padding: 0.875rem 1.25rem;
    border: 0;
    border-radius: 9999px;
    background: #ffffff;
    color: #0b0c0e;
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: -0.011em;
    white-space: nowrap;
    cursor: pointer;
    transition: opacity 300ms cubic-bezier(0.15, 0.5, 0.5, 1),
                transform 300ms cubic-bezier(0.15, 0.5, 0.5, 1);
}

button.dcam-sso-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

button.dcam-sso-btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 3px;
}

button.dcam-sso-btn svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.dcam-sso-hint {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.8125rem;
    margin: 0.875rem 0 0;
}

button.dcam-local-toggle {
    display: block;
    margin: 0 auto 0.25rem;
    padding: 0.25rem 0.5rem;
    background: none;
    border: 0;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.8125rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    transition: color 300ms cubic-bezier(0.15, 0.5, 0.5, 1);
}

button.dcam-local-toggle:hover {
    color: rgba(255, 255, 255, 0.85);
}

/* the classic login/password column - hidden until the toggle opens it */
.dcam-local-form {
    display: none;
}

.dcam-local-open .dcam-local-form {
    display: block;
    animation: dcam-local-in 300ms cubic-bezier(0.15, 0.5, 0.5, 1);
}

@keyframes dcam-local-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: none; }
}
