/* ============================================================
   Auth card - the passwordless sign-in / sign-up surface
   ============================================================

   Shared by Components/Pages/Auth/VerifyEmail.razor (/sign-in, /verify-email) and
   SignUp.razor (/sign-up). It was previously VerifyEmail.razor.css, which meant
   SignUp emitted the same class names but received none of the styling: its card
   rendered transparent, with the dark card text straight on the blue gradient.
   Scoped CSS cannot be shared between two components, so this moves out to a
   stylesheet both pages can use.

   ::deep is dropped on the way out: it exists only to escape CSS isolation, and a
   plain stylesheet has nothing to escape. The selectors are otherwise unchanged.

   The .prometheon-signin-* names are kept for now so this move stays mechanical.
   They describe an auth card rather than anything about Prometheon, and renaming
   them to the generic auth-* set belongs with the design-system extraction.
   ============================================================ */

.prometheon-signin-container {
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Card - sharper, denser enterprise look */
.prometheon-signin-card {
    background: var(--ds-surface);
    border-radius: 10px;
    padding: 1.75rem 1.5rem 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Brand lockup - CENTERED */
.prometheon-signin-brand {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.prometheon-signin-brand-name {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #2b3270;
}

.prometheon-signin-brand-sub {
    font-size: 0.65rem;
    font-weight: 400;
    color: #8b91b0;
}

/* Header */
.prometheon-signin-header {
    text-align: center;
    margin-bottom: 1rem;
}

.prometheon-signin-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--prometheon-brand-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.6rem;
    color: var(--ds-text-inverse);
}

.prometheon-signin-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--pp-title);
    margin: 0 0 0.25rem;
    letter-spacing: -0.02em;
}

.prometheon-signin-subtitle {
    font-size: 0.85rem;
    color: #6b7194;
    margin: 0;
    line-height: 1.4;
}

/* Form.
   Deliberately `div.`: this class is on both the code-entry step's <div> and on a
   MudForm, which renders a <form>. As a scoped rule it reached only the div, because
   MudForm's element never carried the component's scope attribute. Written plainly
   here it would also indent the form by 12px, which is a change, so the selector
   states what it always matched. */
div.prometheon-signin-form {
    margin-top: 0.75rem;
}

.prometheon-signin-code-field input {
    text-align: center !important;
    font-size: 1.35rem !important;
    letter-spacing: 0.25em !important;
    font-weight: 600 !important;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace !important;
}

.prometheon-signin-code-field .mud-input-slot {
    text-align: center;
}

.prometheon-signin-btn .mud-button-label {
    text-transform: none !important;
}

/* Disabled button - muted purple instead of dead gray */
.prometheon-signin-btn.mud-button-filled.mud-button-disabled {
    background-color: #c8cce8 !important;
    color: #8b91b0 !important;
    cursor: not-allowed;
}

.prometheon-signin-btn.mud-button-filled.mud-button-disabled:hover {
    background-color: #c8cce8 !important;
}

/* Timer section */
.prometheon-signin-timer {
    text-align: center;
    margin-top: 0.75rem;
    padding-top: 0.5rem;
}

.prometheon-signin-timer-normal {
    font-size: var(--ds-text-12);
    color: #6b7194;
    display: block;
    margin-bottom: 0.2rem;
}

.prometheon-signin-timer-urgent {
    font-size: var(--ds-text-12);
    color: #c4463b;
    font-weight: 500;
    display: block;
    margin-bottom: 0.2rem;
}

.prometheon-signin-timer-expired {
    font-size: var(--ds-text-12);
    color: #c4463b;
    font-weight: 600;
    display: block;
    margin-bottom: 0.2rem;
}

.prometheon-signin-resend {
    font-size: var(--ds-text-12);
    color: #6b7194;
    margin-top: 0.15rem;
}

.prometheon-signin-resend-wait {
    font-size: var(--ds-text-12);
    color: var(--ds-secondary);
}

/* Back link - MORE VISIBLE on gradient background */
.prometheon-signin-back {
    text-align: center;
    margin-top: 1.25rem;
}

.prometheon-signin-back .mud-button {
    text-transform: none !important;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--ds-text-inverse);
}

.prometheon-signin-back .mud-button:hover {
    color: var(--ds-text-inverse);
    background-color: rgba(255, 255, 255, 0.15);
}

.prometheon-signin-back .mud-button .mud-icon-root {
    color: var(--ds-text-inverse);
}

/* Footer - LARGER and MORE VISIBLE */
.prometheon-signin-footer {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* Responsive */
@media (max-width: 480px) {
    .prometheon-signin {
        padding: 1rem;
    }

    .prometheon-signin-container {
        max-width: 100%;
    }

    .prometheon-signin-card {
        padding: 1.5rem 1.25rem 1.25rem;
        border-radius: 8px;
    }

    .prometheon-signin-title {
        font-size: 1.2rem;
    }

    .prometheon-signin-icon {
        width: 44px;
        height: 44px;
    }

    .prometheon-signin-code-field input {
        font-size: 1.2rem !important;
        letter-spacing: 0.2em !important;
    }
}
