/* ========================================
   auth.css - 認証ページ共通スタイル（ライトモード）
   edill.jp参考 + コーポレートカラー #00B4D8
   ======================================== */

/* リセット */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background: #f2f6fb;
    font-family: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #051728;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    -webkit-font-smoothing: antialiased;
}

/* ロゴ */
.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}
.auth-logo-text {
    font-size: 28px;
    font-weight: 800;
    color: #051728;
    letter-spacing: -0.5px;
}
.auth-logo-text span {
    color: #00B4D8;
}
.auth-logo-sub {
    font-size: 13px;
    color: #6b8299;
    margin-top: 4px;
    font-weight: 400;
}

/* カード */
.auth-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 48px 40px;
    box-shadow: 0 4px 24px rgba(5, 23, 40, 0.08);
    max-width: 440px;
    width: 100%;
}

.auth-card-title {
    font-size: 22px;
    font-weight: 700;
    color: #051728;
    text-align: center;
    margin-bottom: 8px;
}

.auth-card-desc {
    font-size: 14px;
    color: #6b8299;
    text-align: center;
    margin-bottom: 32px;
    line-height: 1.6;
}

/* フォームグループ */
.auth-form-group {
    margin-bottom: 20px;
}

.auth-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #34495e;
    margin-bottom: 8px;
}

.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-icon {
    position: absolute;
    left: 16px;
    width: 18px;
    height: 18px;
    color: #94a3b8;
    pointer-events: none;
}

.auth-input {
    width: 100%;
    padding: 14px 16px 14px 46px;
    border: 1.5px solid #d0dbe6;
    border-radius: 12px;
    font-size: 15px;
    background: #f8fafc;
    color: #051728;
    transition: all 0.2s ease;
    outline: none;
    font-family: inherit;
}
.auth-input::placeholder {
    color: #94a3b8;
}
.auth-input:focus {
    border-color: #00B4D8;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.12);
}
.auth-input.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* パスワード表示トグル */
.auth-pw-toggle {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.auth-pw-toggle:hover { color: #64748b; }
.auth-pw-toggle svg { width: 18px; height: 18px; }

/* チェックボックス */
.auth-checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 24px;
}
.auth-checkbox {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #00B4D8;
    cursor: pointer;
    flex-shrink: 0;
}
.auth-checkbox-label {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}
.auth-checkbox-label a {
    color: #00B4D8;
    text-decoration: none;
}
.auth-checkbox-label a:hover {
    text-decoration: underline;
}

/* ボタン */
.auth-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #00B4D8, #0090AD);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.auth-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 180, 216, 0.35);
}
.auth-btn:active {
    transform: translateY(0);
}
.auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.auth-btn svg {
    width: 18px;
    height: 18px;
}

/* ローディングスピナー */
.auth-btn .spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* リンク */
.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: #64748b;
}
.auth-footer a {
    color: #00B4D8;
    font-weight: 600;
    text-decoration: none;
}
.auth-footer a:hover {
    text-decoration: underline;
}

/* エラーメッセージ */
.auth-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #dc2626;
    display: none;
    align-items: center;
    gap: 8px;
    line-height: 1.5;
}
.auth-error.show {
    display: flex;
}
.auth-error svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* 成功メッセージ */
.auth-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #16a34a;
    display: none;
    align-items: center;
    gap: 8px;
    line-height: 1.5;
}
.auth-success.show {
    display: flex;
}
.auth-success svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* 区切り線 */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}
.auth-divider span {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}

/* メール認証ページ */
.auth-verify-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #dbeafe, #e0f2fe);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}
.auth-verify-icon svg {
    width: 28px;
    height: 28px;
    color: #00B4D8;
}

.auth-verify-email {
    font-size: 15px;
    font-weight: 600;
    color: #051728;
    text-align: center;
    margin-bottom: 16px;
    word-break: break-all;
}

.auth-resend-btn {
    background: none;
    border: 1.5px solid #d0dbe6;
    border-radius: 999px;
    padding: 10px 20px;
    color: #4a5f75;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0 auto;
}
.auth-resend-btn:hover {
    border-color: #00B4D8;
    color: #00B4D8;
}
.auth-resend-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* レスポンシブ */
@media (max-width: 480px) {
    body { padding: 16px; }
    .auth-card {
        padding: 32px 24px;
        border-radius: 16px;
    }
    .auth-card-title { font-size: 20px; }
    .auth-logo-text { font-size: 24px; }
}
