/**
 * 無料会員ページ パスワード保護UI
 * プレミアム/VIPと統一されたデザイン
 */

/* コンテンツロック時のスタイル */
.content-locked {
    overflow: hidden;
    height: 100vh;
}

.content-locked .page-header,
.content-locked .content-section {
    filter: blur(10px);
    pointer-events: none;
    user-select: none;
}

/* パスワードオーバーレイ */
#passwordOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(255, 107, 157, 0.97), 
        rgba(199, 125, 255, 0.97)
    );
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

/* パスワードボックス */
.password-box {
    background: white;
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 90%;
    text-align: center;
    animation: slideUp 0.5s ease;
}

/* アイコン */
.password-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #FF6B9D, #C77DFF);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.3);
}

/* タイトル */
.password-box h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 700;
}

/* 説明文 */
.password-box p {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.password-box p strong {
    color: #FF6B9D;
    font-weight: 600;
}

/* パスワード入力フィールド */
.password-input-group {
    position: relative;
    margin-bottom: 20px;
}

#passwordInput {
    width: 100%;
    padding: 15px 20px;
    font-size: 1.1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    text-align: center;
}

#passwordInput:focus {
    outline: none;
    border-color: #FF6B9D;
    box-shadow: 0 0 0 4px rgba(255, 107, 157, 0.1);
}

/* 送信ボタン */
#submitPassword {
    width: 100%;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #FF6B9D, #C77DFF);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

#submitPassword:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
}

#submitPassword:active {
    transform: translateY(0);
}

/* エラーメッセージ */
#errorMessage {
    display: none;
    color: #e74c3c;
    font-size: 0.95rem;
    margin-top: 15px;
    padding: 12px;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 8px;
    border-left: 4px solid #e74c3c;
}

/* 登録案内 */
.password-register-note {
    margin-top: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #FFF5F7, #F0E6FF);
    border-radius: 12px;
    border-left: 4px solid #FF6B9D;
}

.password-register-note p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0;
}

.password-register-note a {
    color: #FF6B9D;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.password-register-note a:hover {
    color: #C77DFF;
    text-decoration: underline;
}

/* アニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
    20%, 40%, 60%, 80% { transform: translateX(10px); }
}

.password-box.shake {
    animation: shake 0.5s ease;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .password-box {
        padding: 40px 30px;
        max-width: 90%;
    }

    .password-box h2 {
        font-size: 1.5rem;
    }

    .password-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    #passwordInput,
    #submitPassword {
        font-size: 1rem;
        padding: 12px 20px;
    }
}

@media (max-width: 480px) {
    .password-box {
        padding: 30px 20px;
    }

    .password-box h2 {
        font-size: 1.3rem;
    }

    .password-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
}
