@charset "UTF-8";
/*
 * siteb（SiteBeacon）のログイン・新規登録・パスワードを忘れたときの画面の形（CH-722 の段 3）
 *
 * - 読むのは plugins/SitebPlus/templates/layout/auth.php だけ（siteb の、ログインしていない画面だけ）。ほかのサービスの画面には効かない
 * - 色と字は siteb-app.css の変数（.sb-app の --sb-*）。ボタンは siteb-app.css の .sb-btn・.sb-btn-primary・.sb-btn-sub
 * - 中身は 1 列のカード（最大 440px）。上にロゴの帯、下にフッター（.sb-footer）
 * - 本体のテンプレートのまま出す画面（Auth/error・これから足す画面）のために、本体の部品の名前（signup-*・pw-*・external-login-*・
 *   .btn-info・.btn-login・.message）も、このカードの中だけ白い形に合わせる
 * - 名前は sb-auth- で始める
 */

/* --- 土台 --- */
body.sb-auth {
    color: var(--sb-text);
    font-size: 15px;
    line-height: 1.7;
}

.sb-auth-main {
    flex: 1 0 auto;
    width: 100%;
    padding: 40px 16px 56px;
}

/*
 * reCAPTCHA のバッジ（Google が右下に固定で出す・高さ 60px・下から 14px）がフッターに重ならないように、
 * バッジがあるときだけフッターの下にバッジの分の余白を足す（CH-898）。バッジは隠さない。
 * :has が使えないブラウザでは余白が付かないだけ（今までと同じ）
 */
body.sb-auth:has(.grecaptcha-badge) .sb-footer {
    padding-bottom: 88px; /* 14px + 60px + すき間 14px */
}

.sb-auth-box {
    max-width: 440px;
    margin: 0 auto;
}

.sb-auth-brand {
    padding: 14px 20px;
    background: #fff;
    border: 1px solid var(--sb-line);
    border-bottom: none;
    border-radius: 16px 16px 0 0;
}

.sb-auth-card {
    padding: 24px 24px 22px;
    background: #fff;
    border: 1px solid var(--sb-line);
    border-radius: 0 0 16px 16px;
    overflow-wrap: anywhere;
}

.sb-auth-card p {
    margin: 0 0 12px;
}

.sb-auth-card a {
    color: var(--sb-accent);
}

.sb-auth-card a:hover {
    color: var(--sb-accent-dark);
}

.sb-auth-title {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--sb-text);
}

.sb-auth-lead {
    color: var(--sb-text-sub);
    font-size: 14px;
}

.sb-auth-card .sb-auth-lead {
    margin-bottom: 18px;
}

/* 頭の 1 行のすぐ下の補足（新規登録のプランの文） */
.sb-auth-card .sb-auth-lead + .sb-auth-note {
    margin-top: -10px;
    margin-bottom: 18px;
}

.sb-auth-text {
    font-size: 14px;
}

.sb-auth-note {
    color: var(--sb-text-sub);
    font-size: 13px;
}

/* --- 入力の欄 --- */
.sb-auth-field {
    margin: 0 0 14px;
}

.sb-auth-label,
.sb-auth-card .signup-label {
    display: block;
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 700;
    color: var(--sb-text);
    text-align: left;
    letter-spacing: 0;
}

.sb-auth-card div.input {
    margin: 0 0 12px;
}

.sb-auth-field div.input {
    margin: 0;
}

.sb-auth-card input[type="text"],
.sb-auth-card input[type="email"],
.sb-auth-card input[type="password"] {
    display: block;
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #C3CBD3;
    border-radius: 10px;
    background: #fff;
    color: var(--sb-text);
    font: inherit;
    /* スマホで欄を押したときに画面が大きくならないよう 16px */
    font-size: 16px;
    box-shadow: none;
}

.sb-auth-card input[type="text"]:focus,
.sb-auth-card input[type="email"]:focus,
.sb-auth-card input[type="password"]:focus {
    outline: 3px solid var(--sb-accent);
    outline-offset: 1px;
    border-color: var(--sb-accent);
}

.sb-auth-card input[readonly] {
    background: var(--sb-bg);
    color: var(--sb-text-sub);
}

.sb-auth-card input::placeholder {
    color: #8A949E;
}

/* --- 送るボタン（本体の部品の input[type=submit]・.btn-info・.btn-login も同じ形） --- */
.sb-auth-submit,
.sb-auth-card input[type="submit"],
.sb-auth-card button.btn-info,
.sb-auth-card .btn-login {
    display: flex;
    width: 100%;
    min-height: 48px;
    margin: 6px 0 0;
    font-size: 15px;
}

.sb-auth-card input[type="submit"],
.sb-auth-card button.btn-info,
.sb-auth-card .btn-login {
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border: 1px solid var(--sb-accent);
    border-radius: 10px;
    background: var(--sb-accent);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.sb-auth-card input[type="submit"]:hover,
.sb-auth-card button.btn-info:hover,
.sb-auth-card .btn-login:hover {
    background: var(--sb-accent-dark);
}

.sb-auth-card .is-sending,
.sb-auth-card [type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.sb-auth-card div.submit {
    margin: 0;
}

/* --- 同意の欄・読むだけのリンク --- */
.sb-auth-agree,
.sb-auth-card .signup-agree {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 4px 0 10px;
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
    color: var(--sb-text);
}

.sb-auth-agree input[type="checkbox"],
.sb-auth-card .signup-agree input[type="checkbox"] {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin: 2px 0 0;
    accent-color: var(--sb-accent);
}

/* スマホの幅は、指で押しやすい大きさに（CH-1059） */
@media (max-width: 760px) {
    .sb-auth-agree input[type="checkbox"],
    .sb-auth-card .signup-agree input[type="checkbox"] {
        flex-basis: 24px;
        width: 24px;
        height: 24px;
        margin-top: 0;
    }
}

.sb-auth-card .signup-notice {
    margin: 0 0 16px 28px;
    font-size: 13px;
    text-align: left;
}

/* --- 下のリンク --- */
.sb-auth-links,
.sb-auth-card .signup-login {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--sb-line);
    font-size: 14px;
    color: var(--sb-text-sub);
    text-align: center;
}

.sb-auth-links p {
    margin: 0 0 4px;
}

.sb-auth-links p:last-child {
    margin-bottom: 0;
}

/* --- 知らせの箱（送ったアドレス・メンテナンスのお知らせ） --- */
.sb-auth-msg {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.6;
}

.sb-auth-msg p {
    margin: 0;
}

.sb-auth-msg-title {
    font-weight: 700;
}

.sb-auth-msg-ok {
    background: var(--sb-ok-soft);
    color: #14532D;
}

.sb-auth-msg-caution {
    background: var(--sb-caution-soft);
    border: 1px solid var(--sb-caution-line);
    color: #6B4000;
}

.sb-auth-address {
    font-weight: 700;
    word-break: break-all;
}

/* --- サーバーのメッセージ（Flash）と reCAPTCHA の失敗の文。白地なので字を濃くする --- */
.sb-auth-card .message.js-flash-message {
    margin: 0 0 14px;
    border-radius: 10px;
}

/* 共通の部品（Parts/new_password_form）は、ボタンの下にメッセージを出す */
.sb-auth-card div.submit + .message.js-flash-message {
    margin-top: 12px;
}

.sb-auth-card .message.js-flash-message.success { color: #14532D; background: #ECFDF3; }
.sb-auth-card .message.js-flash-message.error { color: #7A271A; background: var(--sb-danger-soft); }
.sb-auth-card .message.js-flash-message.warning { color: #713F12; background: var(--sb-caution-soft); }
.sb-auth-card .message.js-flash-message.info { color: #0B4A50; background: var(--sb-accent-soft); border-color: var(--sb-accent); }

.sb-auth-card .recaptcha-error {
    margin: 0 0 12px;
    padding: 10px 12px;
    border: 1px solid var(--sb-danger);
    border-radius: 10px;
    background: var(--sb-danger-soft);
    color: #7A271A;
    font-size: 14px;
    line-height: 1.5;
}

/* --- Google・LINE のボタン（共通の部品 Parts/external_login_buttons・CH-123） --- */
.sb-auth-card .external-login {
    margin-top: 18px;
}

.sb-auth-card .external-login-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--sb-text-muted);
}

.sb-auth-card .external-login-divider::before,
.sb-auth-card .external-login-divider::after {
    content: "";
    flex: 1;
    border-top: 1px solid var(--sb-line);
}

.sb-auth-card .btn-external-login {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin-top: 10px;
    padding: 0 16px;
    border: 1px solid #C5CDD5;
    border-radius: 10px;
    background: #fff;
    color: var(--sb-text);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.sb-auth-card .btn-external-login:hover,
.sb-auth-card .btn-external-login:focus-visible {
    border-color: var(--sb-accent);
    color: var(--sb-text);
}

.sb-auth-card .btn-external-login-line {
    background: #06C755;
    border-color: #06C755;
    color: #fff;
}

.sb-auth-card .btn-external-login-line:hover,
.sb-auth-card .btn-external-login-line:focus-visible {
    background: #05A647;
    border-color: #05A647;
    color: #fff;
}

.sb-auth-card .external-login-note,
.sb-auth-card .external-login-error-note {
    margin: 8px 0 0;
    font-size: 13px;
    color: var(--sb-text-sub);
}

.sb-auth-card .external-login-error {
    font-size: 15px;
    color: var(--sb-text);
}

/* --- 新しいパスワードの欄（共通の部品 Parts/new_password_form・CH-165・CH-565） --- */
.sb-auth-card .pw-field {
    position: relative;
}

.sb-auth-card .pw-field input {
    padding-right: 48px;
}

.sb-auth-card .pw-toggle {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 34px;
    height: 34px;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--sb-text-muted);
    cursor: pointer;
}

.sb-auth-card .pw-toggle:hover,
.sb-auth-card .pw-toggle.is-on {
    color: var(--sb-accent);
    border-color: var(--sb-line);
}

.sb-auth-card .pw-rules {
    list-style: none;
    margin: -4px 0 16px;
    padding: 0;
    font-size: 13px;
    color: var(--sb-text-sub);
    text-align: left;
}

.sb-auth-card .pw-rules li {
    position: relative;
    margin: 4px 0;
    padding-left: 24px;
}

/* 条件の印：まだのものは「・」、満たしたものは「✓」（押せるチェックボックスに見えないよう、枠は描かない・CH-1059） */
.sb-auth-card .pw-rules li::before {
    content: "\30FB";
    position: absolute;
    left: 0;
    top: 0;
    width: 18px;
    color: #9AA4AE;
    font-weight: 700;
    text-align: center;
}

.sb-auth-card .pw-rules li.is-met {
    color: var(--sb-ok);
}

.sb-auth-card .pw-rules li.is-met::before {
    content: "\2713";
    color: var(--sb-ok);
}

/* 部品の決まりの文は style 属性で暗い画面の色になっているので、ここだけ上書きする */
.sb-auth-card .password-hint {
    margin: 0 0 14px !important;
    color: var(--sb-text-sub) !important;
    font-size: 13px !important;
}

/* --- 本体のテンプレートのまま出す画面の、新規登録の部品（signup-*） --- */
.sb-auth-card .signup-intro {
    margin: 0 0 16px;
}

.sb-auth-card .signup-service {
    margin: 0 0 4px;
    font-weight: 700;
    color: var(--sb-accent-dark);
}

.sb-auth-card .signup-desc,
.sb-auth-card .signup-offer,
.sb-auth-card .signup-lead {
    margin: 0 0 8px;
    font-size: 14px;
    color: var(--sb-text-sub);
}

.sb-auth-card .signup-link {
    font-weight: 700;
    text-decoration: none;
}

.sb-auth-card .signup-sent {
    padding: 14px;
    border-radius: 10px;
    background: var(--sb-accent-soft);
    font-size: 14px;
}

.sb-auth-card .signup-sent-title {
    font-weight: 700;
    color: var(--sb-accent-dark);
}

.sb-auth-card .signup-sent-to {
    font-weight: 700;
    word-break: break-all;
}

.sb-auth-card .signup-sent-help {
    color: var(--sb-text-sub);
}

/* --- スマホ --- */
@media (max-width: 480px) {
    .sb-auth-main {
        padding: 16px 12px 40px;
    }

    .sb-auth-brand {
        padding: 12px 16px;
    }

    .sb-auth-card {
        padding: 20px 16px 18px;
    }

    .sb-auth-title {
        font-size: 20px;
    }

    .sb-footer-copy {
        margin-left: 0;
    }
}

/* --- パスワードのあとの 6 けた（Login/otp.php・CH-1033） --- */
.sb-auth-card input.sb-auth-otp-code {
    font-family: var(--sb-mono);
    font-size: 24px;
    letter-spacing: 0.4em;
    text-align: center;
}

.sb-auth-otp-switch {
    margin-top: 12px;
    text-align: center;
}

.sb-auth-otp-switch-btn {
    padding: 4px 0;
    border: 0;
    background: transparent;
    color: var(--sb-accent);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.sb-auth-otp-switch-btn:hover,
.sb-auth-otp-switch-btn:focus-visible {
    text-decoration: underline;
}

.sb-auth-otp-note {
    margin-top: 12px;
}
