/**
 * Garage Connect 認証ページスタイル
 * assets/css/auth.css
 */

/* ── コンテナ ─────────────────────────────────── */
.gc-auth {
    display: flex;
    justify-content: center;
    padding: 40px 16px 60px;
}

.gc-auth__inner {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 36px 32px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

/* ── タイトル ─────────────────────────────────── */
.gc-auth__title {
    font-size: 1.375rem;
    font-weight: 700;
    text-align: center;
    margin: 0 0 24px;
    color: #1e293b;
}

/* ── アラート ─────────────────────────────────── */
.gc-auth__alert {
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 0.875rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.gc-auth__alert--error {
    background: #fef2f2;
    border-left: 4px solid #dc2626;
    color: #991b1b;
}

.gc-auth__alert--info {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    color: #1d4ed8;
}

.gc-auth__error-list {
    margin: 0;
    padding-left: 18px;
}

.gc-auth__error-list li {
    margin-bottom: 4px;
}

/* ── フォーム ─────────────────────────────────── */
.gc-auth__form {
    margin: 0;
}

.gc-auth__field {
    margin-bottom: 18px;
}

.gc-auth__field--inline {
    display: flex;
    align-items: center;
}

.gc-auth__label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.gc-auth__required {
    color: #dc2626;
    margin-left: 3px;
}

.gc-auth__input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    color: #1e293b;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
}

.gc-auth__input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

/* ── パスワード表示トグル ──────────────────────── */
.gc-auth__password-wrap {
    position: relative;
}

.gc-auth__password-wrap .gc-auth__input {
    padding-right: 46px;
}

.gc-auth__toggle-pass {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    color: #6b7280;
    font-size: 1.1rem;
}

.gc-auth__toggle-pass:hover {
    color: #374151;
}

/* ── パスワード強度 ───────────────────────────── */
.gc-auth__password-strength {
    height: 4px;
    border-radius: 2px;
    margin-top: 6px;
    background: #e5e7eb;
    transition: background 0.2s;
}

.gc-auth__password-strength[data-strength="weak"]   { background: #ef4444; }
.gc-auth__password-strength[data-strength="fair"]   { background: #f59e0b; }
.gc-auth__password-strength[data-strength="good"]   { background: #3b82f6; }
.gc-auth__password-strength[data-strength="strong"] { background: #22c55e; }

.gc-auth__hint {
    font-size: 0.8125rem;
    margin: 4px 0 0;
    min-height: 1.2em;
}

.gc-auth__hint--ok    { color: #16a34a; }
.gc-auth__hint--error { color: #dc2626; }

/* ── チェックボックス ─────────────────────────── */
.gc-auth__check-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
}

.gc-auth__checkbox {
    width: 16px;
    height: 16px;
    accent-color: #3b82f6;
    cursor: pointer;
}

/* ── アクションボタン ─────────────────────────── */
.gc-auth__actions {
    margin-top: 24px;
}

.gc-auth__submit {
    display: block;
    width: 100%;
    padding: 12px;
    background: #1a6fc4;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: background 0.15s, opacity 0.15s;
}

.gc-auth__submit:hover {
    background: #1558a0;
}

.gc-auth__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ── リンク ───────────────────────────────────── */
.gc-auth__link-text {
    text-align: center;
    font-size: 0.875rem;
    margin: 16px 0 0;
    color: #6b7280;
}

.gc-auth__link-text a {
    color: #1a6fc4;
    text-decoration: none;
}

.gc-auth__link-text a:hover {
    text-decoration: underline;
}

/* ── フッター（切り替えリンク） ──────────────── */
.gc-auth__footer {
    border-top: 1px solid #e5e7eb;
    margin-top: 28px;
    padding-top: 20px;
    text-align: center;
}

.gc-auth__footer p {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0 0 10px;
}

.gc-auth__sub-button {
    display: inline-block;
    padding: 9px 24px;
    border: 2px solid #1a6fc4;
    border-radius: 6px;
    color: #1a6fc4;
    font-size: 0.9375rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.gc-auth__sub-button:hover {
    background: #1a6fc4;
    color: #fff;
    text-decoration: none;
}

/* ── レスポンシブ ─────────────────────────────── */
@media (max-width: 480px) {
    .gc-auth__inner {
        padding: 28px 20px;
    }
}
