/* ============================
   case-auth.css
   ログイン・会員登録・パスワードリセット
   最小フォントサイズ: 1rem
   ============================ */

.ca-auth-wrap {
    display: flex;
    justify-content: center;
    padding: 2rem 0 3rem;
}

.ca-auth-card {
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 480px;
}

/* ===== タイトル ===== */
.ca-auth-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #111;
    text-align: center;
    margin-bottom: 6px;
}
.ca-auth-subtitle {
    font-size: 1rem;
    color: #9ca3af;
    text-align: center;
    margin-bottom: 1.75rem;
}

/* ===== フィールド ===== */
.ca-auth-field {
    margin-bottom: 1.25rem;
}
.ca-auth-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 7px;
}
.ca-req {
    display: inline-block;
    font-size: 1rem;
    font-weight: 600;
    background: #fee2e2;
    color: #b91c1c;
    padding: 1px 7px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
}
.ca-auth-input {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    font-size: 1rem;
    color: #111;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}
.ca-auth-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37,99,235,.1);
}

/* ===== パスワード表示切替 ===== */
.ca-auth-pass-wrap {
    position: relative;
}
.ca-auth-pass-wrap .ca-auth-input {
    padding-right: 72px;
}
.ca-pass-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1rem;
    color: #6b7280;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    transition: color .15s;
}
.ca-pass-toggle:hover { color: #2563eb; }

/* ===== ログイン保持・同意 ===== */
.ca-auth-remember,
.ca-auth-agree {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 1rem;
    color: #374151;
    cursor: pointer;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}
.ca-auth-remember input,
.ca-auth-agree input {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: #2563eb;
}
.ca-auth-agree a {
    color: #2563eb;
    text-decoration: underline;
}

/* ===== メッセージ ===== */
.ca-auth-msg {
    font-size: 1rem;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: none;
    line-height: 1.6;
}
.ca-auth-msg.show { display: block; }
.ca-auth-msg-success { background: #f0fdf4; border: 1px solid #86efac; color: #15803d; }
.ca-auth-msg-error   { background: #fef2f2; border: 1px solid #fca5a5; color: #b91c1c; }

/* ===== ボタン ===== */
.ca-auth-btn {
    width: 100%;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 15px 20px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, transform .1s;
    letter-spacing: .03em;
    margin-bottom: 1.25rem;
}
.ca-auth-btn:hover:not(:disabled) { background: #1d4ed8; }
.ca-auth-btn:active:not(:disabled) { transform: scale(.98); }
.ca-auth-btn:disabled { background: #bfdbfe; cursor: not-allowed; }

/* ===== リンク ===== */
.ca-auth-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}
.ca-auth-links a {
    font-size: 1rem;
    color: #6b7280;
    text-decoration: none;
    transition: color .15s;
}
.ca-auth-links a:hover { color: #2563eb; text-decoration: underline; }

.ca-auth-redirect {
    text-align: center;
    font-size: 1rem;
    color: #6b7280;
    padding: 2rem;
}
.ca-auth-redirect a {
    color: #2563eb;
    text-decoration: underline;
}

/* ===== ワイドカード（会員登録用） ===== */
.ca-auth-card-wide {
    max-width: 560px;
}

/* ===== 案件引き継ぎノート ===== */
.ca-auth-offer-note {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #eff6ff;
    border: 1.5px solid #bfdbfe;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 1rem;
    color: #1e40af;
    margin-bottom: 1.75rem;
    line-height: 1.6;
    font-weight: 500;
}
.ca-auth-offer-icon { font-size: 1.1rem; flex-shrink: 0; }

/* ===== 姓・名 2カラム ===== */
.ca-auth-name-row {
    display: flex;
    gap: 12px;
    width: 100%;
}
.ca-auth-name-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ca-auth-name-sub {
    font-size: 1rem;
    color: #6b7280;
    font-weight: 500;
}

/* ===== セレクト ===== */
.ca-auth-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 44px;
}

/* ===== ラジオ・チェックボックス ===== */
.ca-auth-radio-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.ca-auth-radio-label,
.ca-auth-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    color: #374151;
    cursor: pointer;
    padding: 10px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    transition: border-color .15s, background .15s;
}
.ca-auth-radio-label {
    flex: 1;
    justify-content: center;
}
.ca-auth-radio-label:hover,
.ca-auth-checkbox-label:hover {
    border-color: #93c5fd;
    background: #eff6ff;
}
.ca-auth-checkbox-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
}

/* ===== レスポンシブ ===== */
@media (max-width: 520px) {
    .ca-auth-card {
        padding: 2rem 1.25rem;
        border-radius: 14px;
    }
    .ca-auth-name-row {
        flex-direction: column;
        gap: 10px;
    }
    .ca-auth-checkbox-group {
        grid-template-columns: 1fr;
    }
    .ca-auth-radio-label {
        flex: unset;
        width: 100%;
    }
}
