/* Sign in with ATmosphere: a single social-login button that expands to a handle field. */
.atmosphere-login {
    --bsky-blue: #1185fe;
    --bsky-blue-dark: #0a6fd6;
    --bsky-border: #c3c4c7;
    --bsky-text: #1d2327;
    box-sizing: border-box;
    display: block;
    clear: both;
    width: 100%;
    margin: 16px 0;
    font-size: 14px;
    line-height: 1.4;
    color: var(--bsky-text);
}

.atmosphere-login *,
.atmosphere-login *::before,
.atmosphere-login *::after,
.atmosphere-login .atmosphere-login__button,
.atmosphere-login .atmosphere-login__panel,
.atmosphere-login .atmosphere-login__input,
.atmosphere-login .atmosphere-login__continue {
    box-sizing: border-box;
}

.atmosphere-login__divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 16px;
    color: #646970;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.atmosphere-login__divider::before,
.atmosphere-login__divider::after {
    content: "";
    flex: 1;
    border-top: 1px solid #dcdcde;
}

.atmosphere-login__details {
    margin: 0;
    padding: 0;
    border: 0;
}

/* The button: same shape as "Sign in with Google" / "Sign in with Apple". */
.atmosphere-login__button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 40px;
    padding: 8px 16px;
    border: 1px solid var(--bsky-border);
    border-radius: 4px;
    background: #fff;
    color: var(--bsky-text);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background-color .15s, border-color .15s;
}

.atmosphere-login__button::-webkit-details-marker,
.atmosphere-login__button::marker {
    display: none;
    content: "";
}

.atmosphere-login__button:hover {
    background: #f6f7f7;
    border-color: #8c8f94;
}

.atmosphere-login__button:focus-visible {
    outline: 2px solid var(--bsky-blue);
    outline-offset: 2px;
}

.atmosphere-login__icon {
    flex: none;
    color: #1f4fd1;
}

.atmosphere-login__details[open] > .atmosphere-login__button {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-color: var(--bsky-blue);
}

.atmosphere-login__panel {
    padding: 12px;
    border: 1px solid var(--bsky-blue);
    border-top: 0;
    border-radius: 0 0 4px 4px;
    background: #fff;
}

.atmosphere-login__label {
    display: block;
    margin: 0 0 6px;
    font-weight: 600;
    font-size: 13px;
}

.atmosphere-login__row {
    display: flex;
    gap: 8px;
}

/* Specific enough to beat wp-login.php and theme input styles (e.g. ".login form .input"). */
.atmosphere-login .atmosphere-login__row input.atmosphere-login__input {
    flex: 1;
    min-width: 0;
    width: auto;
    height: 36px;
    min-height: 36px;
    max-height: none;
    margin: 0;
    padding: 6px 10px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    background: #fff;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: none;
}

.atmosphere-login .atmosphere-login__row input.atmosphere-login__input:focus {
    border-color: var(--bsky-blue);
    outline: 1px solid var(--bsky-blue);
}

.atmosphere-login__continue,
.atmosphere-login__continue:visited {
    display: inline-flex;
    align-items: center;
    flex: none;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 4px;
    background: var(--bsky-blue);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.atmosphere-login__continue:hover,
.atmosphere-login__continue:focus {
    background: var(--bsky-blue-dark);
    color: #fff;
}

.atmosphere-login__continue[aria-busy="true"] {
    opacity: .7;
    pointer-events: none;
}

.atmosphere-login__hint.atmosphere-login__hint--error {
    color: #d63638;
}

.atmosphere-login__hint {
    margin: 6px 0 0;
    color: #646970;
    font-size: 12px;
}

.atmosphere-login__error {
    margin: 0 0 10px;
    padding: 8px 12px;
    border-left: 4px solid #d63638;
    background: #fcf0f1;
    font-size: 13px;
}

/* wp-login.php: sits below the Log In button, full form width. */
.login form .atmosphere-login--wp-login {
    margin: 20px 0 0;
    padding-top: 4px;
}
