/* 統一ログイン/会員登録モーダルスタイル */
/* 無地注文・その他加工注文共通 */
#quickRegisterForm .btn-primary{
    background-color: #4CAF50 !important;
    background: #4CAF50;
}

/* モーダル背景 */
.login-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 20000;
}

/* モーダル本体 */
.login-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 480px;
    z-index: 20001;
}

/* モーダルヘッダー */
.modal-header {
    padding: 0 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
    font-weight:bold;
}
.modal-content h4{
    display: block;
    margin-block-start: 1.33em;
    margin-block-end: 1.33em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
    unicode-bidi: isolate;
}

/* 閉じるボタン */
.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.close-btn:hover {
    color: #333;
}

/* モーダルコンテンツ */
.modal-content {
    padding: 20px;
    overflow-y: auto;
    max-height: 80vh;
}

/* h4のリセット（モーダル内） */
.login-modal h4 {
    font-size: 1.25rem;
    margin: 0;
    padding: 0;
}

/* 認証フォーム */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.auth-form .btn-primary{
    background: #4CAF50;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
}
/* フォームグループ */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-size: 14px;
    color: #666;
}

.form-group input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    width: inherit;
    height: inherit;
    box-sizing: border-box;
    margin-bottom:0;
}

.form-group input:focus {
    border-color: #0066cc;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.1);
}

/* 特典リスト */
.benefits-list {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.benefits-list p {
    margin: 5px 0;
    color: #333;
    font-weight: bold;
}

/* セクション分け */
.register-section {
    border-bottom: 1px solid #ddd;
    padding-bottom: 20px;
}

.login-section {
    padding-top: 20px;
}

/* ボタンスタイル */
.btn-primary {
    background-color: #007bff;
    color: white!important;
    border: none;
    padding: 0.875rem 1rem;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
    background-image:linear-gradient(to bottom, #0088cc, #0044cc);
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: #FFF;
    color: #111!important;;
    border: solid 1px #ddd;
    padding: 0.875rem 1rem;
    border-radius: 4px;
    font-size: 16px;
    font-weight: normal;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* 区切り線 */
.divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
    color: #999;
    font-size: 14px;
}

.divider::before, .divider::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #ddd;
    width:45%;
}

.divider::after {
    right: 0;
}

/* SNSボタン */
.sns-buttons {
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.btn-facebook,
.btn-google {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-facebook {
    background-color: #1877f2;
    color: white;
}

.btn-facebook:hover {
    background-color: #166fe5;
}

.btn-google {
    background: #db4437;
    color: #FFF;
    border: 1px solid #dadce0;
}

.btn-google:hover {
    background-color: #f8f9fa;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* パスワードリセットリンク */
.password-reset-link {
    text-align: center;
    margin-top: 20px;
}

.password-reset-link a {
    color: #0066cc;
    text-decoration: none;
}

.password-reset-link a:hover {
    text-decoration: underline;
}

/* エラーメッセージ */
.error-message {
    color: #ff0000;
    font-size: 14px;
    text-align: center;
    margin-bottom: 10px;
}

/* トースト通知 */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 30000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.toast.show {
    opacity: 1;
}

.toast.error {
    background-color: #dc3545;
}

.toast.success {
    background-color: #28a745;
}

.toast.info {
    background-color: #17a2b8;
}

/* モバイル対応 */
@media (max-width: 600px) {
    .modal-content {
        padding: 15px;
    }

    .modal-header h3 {
        font-size: 1.25rem;
    }

    .form-group input {
        font-size: 16px; /* iOS対策 */
    }
}

/* アニメーション */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}