.guard-dog-login-form {
    --guard-dog-login-bg: #ffffff;
    --guard-dog-login-border: #d0d7de;
    --guard-dog-login-text: #1f2328;
    --guard-dog-login-muted: #59636e;
    --guard-dog-login-accent: #0f6cbd;
    --guard-dog-login-accent-hover: #0a5d9f;
    --guard-dog-login-danger-bg: #fff1f0;
    --guard-dog-login-danger-border: #f3b8b3;
    --guard-dog-login-danger-text: #8a1c14;
    max-width: var(--guard-dog-login-max-width, 34rem);
    padding: 1.5rem;
    border: 1px solid var(--guard-dog-login-border);
    border-radius: 16px;
    background: var(--guard-dog-login-bg);
    color: var(--guard-dog-login-text);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.guard-dog-login-form[data-style="minimal"] {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.guard-dog-login-form[data-style="compact"] {
    --guard-dog-login-max-width: 28rem;
    padding: 1rem;
    border-radius: 12px;
}

.guard-dog-login-form__form {
    display: grid;
    gap: 1rem;
}

.guard-dog-login-form__alternate {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}

.guard-dog-login-form__separator {
    position: relative;
    margin: 0 0 1rem;
    text-align: center;
}

.guard-dog-login-form__separator::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--guard-dog-login-border);
}

.guard-dog-login-form__separator span {
    position: relative;
    display: inline-block;
    padding: 0 0.85rem;
    background: var(--guard-dog-login-bg);
    color: var(--guard-dog-login-muted);
    font-size: 0.85rem;
    font-weight: 600;
}

.guard-dog-login-form__field,
.guard-dog-login-form__remember,
.guard-dog-login-form__actions,
.guard-dog-login-form__state {
    margin: 0;
}

.guard-dog-login-form__label,
.guard-dog-login-form__checkbox-label {
    display: inline-flex;
    gap: 0.55rem;
    align-items: center;
    font-weight: 600;
    color: var(--guard-dog-login-text);
}

.guard-dog-login-form__label {
    margin-bottom: 0.45rem;
}

.guard-dog-login-form__input {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--guard-dog-login-border);
    border-radius: 10px;
    background: #fff;
    color: inherit;
    box-sizing: border-box;
}

.guard-dog-login-form__input:focus {
    outline: 2px solid rgba(15, 108, 189, 0.2);
    outline-offset: 2px;
    border-color: var(--guard-dog-login-accent);
}

.guard-dog-login-form__messages {
    margin-bottom: 1rem;
    padding: 0.875rem 1rem;
    border-radius: 12px;
    border: 1px solid transparent;
}

.guard-dog-login-form__messages--error {
    background: var(--guard-dog-login-danger-bg);
    border-color: var(--guard-dog-login-danger-border);
    color: var(--guard-dog-login-danger-text);
}

.guard-dog-login-form__message {
    margin: 0;
}

.guard-dog-login-form__message + .guard-dog-login-form__message {
    margin-top: 0.5rem;
}

.guard-dog-login-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: center;
    justify-content: space-between;
}

.guard-dog-login-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.85rem;
    padding: 0.8rem 1.2rem;
    border: 0;
    border-radius: 999px;
    background: var(--guard-dog-login-accent);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 120ms ease, opacity 120ms ease;
}

.guard-dog-login-form__submit:hover,
.guard-dog-login-form__submit:focus {
    background: var(--guard-dog-login-accent-hover);
}

.guard-dog-login-form__submit[disabled] {
    opacity: 0.75;
    cursor: wait;
}

.guard-dog-login-form__link {
    color: var(--guard-dog-login-accent);
    text-decoration: none;
    font-weight: 600;
}

.guard-dog-login-form__link:hover,
.guard-dog-login-form__link:focus {
    text-decoration: underline;
}

.guard-dog-login-form__state {
    display: grid;
    gap: 0.75rem;
}

.guard-dog-login-form__state-text {
    margin: 0;
}

.guard-dog-login-form.is-submitting {
    opacity: 0.94;
}

.guard-dog-login-form .guard-dog-passkey-login {
    text-align: center;
}

.guard-dog-login-form .guard-dog-passkey-login__button {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 2.85rem;
    border-radius: 999px;
}

.guard-dog-login-form .guard-dog-passkey-login__status {
    margin: 0.6rem 0 0;
    color: var(--guard-dog-login-muted);
    font-size: 0.85rem;
    display: none;
}

.guard-dog-login-form .guard-dog-social-login {
    margin: 0;
}

.guard-dog-login-form .guard-dog-social-login__buttons {
    gap: 0.75rem;
}

.guard-dog-login-form .guard-dog-social-login__btn {
    border-radius: 999px;
}

@media (max-width: 640px) {
    .guard-dog-login-form {
        padding: 1rem;
        border-radius: 12px;
    }

    .guard-dog-login-form__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .guard-dog-login-form__submit {
        width: 100%;
    }
}
