/**
 * ゲストモード登録モーダルのスタイル
 *
 * 発注者・開発会社向けの登録モーダルダイアログ
 */

/* ==========================================
   オーバーレイ
   ========================================== */
.guest-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
}

/* ==========================================
   モーダルコンテンツ
   ========================================== */
.guest-modal-content {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 32px;
    animation: guest-modal-fadeIn 0.2s ease-out;
}

@keyframes guest-modal-fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   閉じるボタン
   ========================================== */
.guest-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, color 0.2s;
}

.guest-modal-close:hover {
    background-color: #f3f4f6;
    color: #374151;
}

/* ==========================================
   ステップコンテナ
   ========================================== */
.guest-modal-step {
    /* 表示/非表示はJSで制御 */
}

/* ==========================================
   戻るボタン
   ========================================== */
.guest-modal-back {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 14px;
    cursor: pointer;
    padding: 4px 8px;
    margin-bottom: 16px;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
}

.guest-modal-back:hover {
    background-color: #f3f4f6;
    color: #374151;
}

/* ==========================================
   タイトル・説明
   ========================================== */
.guest-modal-title {
    font-size: 24px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 16px 0;
    text-align: center;
}

.guest-modal-description {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 24px 0;
    text-align: center;
}

.guest-modal-note {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 20px;
    text-align: center;
}

/* ==========================================
   ユーザータイプ選択ボタン
   ========================================== */
.guest-type-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.guest-type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background-color: #ffffff;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.guest-type-btn:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.guest-type-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.guest-type-label {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.guest-type-desc {
    font-size: 13px;
    color: #6b7280;
}

/* 発注者ボタン */
.guest-type-client:hover {
    border-color: #3b82f6;
}

/* 開発会社ボタン */
.guest-type-developer:hover {
    border-color: #10b981;
}

/* ==========================================
   フォームスタイル
   ========================================== */
.guest-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.guest-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.guest-form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.guest-form-group label .required {
    color: #ef4444;
}

.guest-form-group input {
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    color: #111827;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.guest-form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.guest-form-group input::placeholder {
    color: #9ca3af;
}

.guest-form-hint {
    font-size: 12px;
    color: #9ca3af;
}

/* ==========================================
   エラーメッセージ
   ========================================== */
.guest-form-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 12px 16px;
    color: #dc2626;
    font-size: 14px;
}

/* ==========================================
   送信ボタン
   ========================================== */
.guest-submit-btn {
    padding: 14px 24px;
    background-color: #3b82f6;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.guest-submit-btn:hover:not(:disabled) {
    background-color: #2563eb;
}

.guest-submit-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.guest-submit-btn:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
}

/* ==========================================
   認証待ち画面
   ========================================== */
.guest-pending-icon {
    font-size: 64px;
    text-align: center;
    margin: 24px 0;
}

.guest-pending-actions {
    text-align: center;
    margin-top: 24px;
}

.guest-resend-btn {
    padding: 10px 20px;
    background-color: transparent;
    color: #3b82f6;
    border: 1px solid #3b82f6;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.guest-resend-btn:hover:not(:disabled) {
    background-color: #eff6ff;
}

.guest-resend-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.guest-close-btn {
    width: 100%;
    margin-top: 24px;
    padding: 14px 24px;
    background-color: #f3f4f6;
    color: #374151;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.guest-close-btn:hover {
    background-color: #e5e7eb;
}

/* ==========================================
   レスポンシブ対応
   ========================================== */
@media (max-width: 480px) {
    .guest-modal-content {
        padding: 24px;
        margin: 10px;
    }

    .guest-modal-title {
        font-size: 20px;
    }

    .guest-type-btn {
        padding: 20px;
    }

    .guest-type-icon {
        font-size: 32px;
    }

    .guest-type-label {
        font-size: 16px;
    }
}
