/*
 | The panel stylesheet, registered in MytoolsPanel and published by `filament:assets`.
 |
 | Filament's precompiled theme contains only the utilities Filament itself ships, so a utility
 | class on one of our own elements renders at 0x0 while a text assertion still passes
 | (.ai/rules/filament.md). Everything our own markup needs to lay out is therefore declared here.
 |
 | Filament's CSS custom properties are used where one exists, so these follow the theme rather
 | than pinning colours and spacing of their own.
 */

.fi-panel-switcher {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-inline-start: 1.5rem;
    padding-inline-start: 1.5rem;
    border-inline-start: 1px solid var(--gray-200);
}

.dark .fi-panel-switcher {
    border-inline-start-color: var(--gray-700);
}

/* The alternatives to the password, under the sign-in button. */

.mytools-login-alternatives {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/*
 | A labelled rule, so the passkey button reads as a second way in rather than as a second
 | submit button under the first.
 */
.mytools-login-separator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-500);
    font-size: 0.75rem;
    line-height: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mytools-login-separator::before,
.mytools-login-separator::after {
    content: '';
    flex: 1 1 0;
    border-top: 1px solid var(--gray-200);
}

.dark .mytools-login-separator::before,
.dark .mytools-login-separator::after {
    border-top-color: var(--gray-700);
}

/* Filament's button fills its own wrapper, so full width is set on the wrapper. */
.mytools-login-alternatives .fi-btn,
.mytools-login-alternatives .fi-btn-ctn {
    width: 100%;
}

.mytools-developer-logins {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--warning-400);
}

.mytools-developer-logins-heading {
    color: var(--gray-500);
    font-size: 0.75rem;
    line-height: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/*
 | The package renders its own `<button>`, so it cannot be a Filament component; these are the
 | rules a Filament secondary button would have applied.
 */
.mytools-developer-login-button {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    background-color: transparent;
    color: var(--gray-700);
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
}

.mytools-developer-login-button:hover {
    background-color: var(--gray-50);
}

.dark .mytools-developer-login-button {
    border-color: var(--gray-600);
    color: var(--gray-200);
}

.dark .mytools-developer-login-button:hover {
    background-color: var(--gray-800);
}
