/**
 * Individual Password Protection - パスワードフォームスタイル
 * Version: 1.0.0
 */

/* リセットとベーススタイル */
.ipp-password-page {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.6;
}

/* コンテナ */
.ipp-container {
    width: 100%;
    max-width: 480px;
    padding: 20px;
    box-sizing: border-box;
}

/* フォームラッパー */
.ipp-form-wrapper {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideUp 0.5s ease-out;
}

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

/* ヘッダー */
.ipp-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 32px 24px;
    text-align: center;
    color: #ffffff;
}

.ipp-site-title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.ipp-site-description {
    margin: 8px 0 0;
    font-size: 14px;
    opacity: 0.9;
}

/* コンテンツ */
.ipp-content {
    padding: 40px 32px;
}

/* ロックアイコン */
.ipp-lock-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    color: #ffffff;
}

.ipp-lock-icon svg {
    width: 40px;
    height: 40px;
}

/* フォームタイトル */
.ipp-form-title {
    margin: 0 0 12px;
    /* font-size: 24px; */
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
    text-align: center;
}

/* フォーム説明 */
.ipp-form-description {
    margin: 0 0 24px;
    font-size: 15px;
    color: #718096;
    text-align: center;
}

/* エラーメッセージ */
.ipp-error-message {
    margin: 0 0 24px;
    padding: 16px;
    background: #fff5f5;
    border: 1px solid #fc8181;
    border-radius: 8px;
    color: #c53030;
    font-size: 14px;
    text-align: center;
    animation: shake 0.5s ease-out;
}

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

/* フォーム */
.ipp-password-form {
    margin: 0;
}

/* フォームグループ */
.ipp-form-group {
    margin-bottom: 24px;
    text-align: center;
}

.ipp-form-group:last-child {
    margin-bottom: 0;
}

/* ラベル */
.ipp-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    text-align: center;
}

/* 入力フィールド */
.ipp-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    color: #1a202c;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    box-sizing: border-box;
    transition: all 0.2s ease;
    outline: none;
}

.ipp-input:focus {
    background: #ffffff;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.ipp-input::placeholder {
    color: #a0aec0;
}

#ipp_password {
    text-align: center;
}

/* 送信ボタン */
.ipp-submit-button {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    outline: none;
}

.ipp-submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.ipp-submit-button:active {
    transform: translateY(0);
}

.ipp-button-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.ipp-submit-button:hover .ipp-button-icon {
    transform: translateX(4px);
}

/* フッター */
.ipp-footer {
    padding: 24px 32px;
    background: #f7fafc;
    border-top: 1px solid #e2e8f0;
}

.ipp-footer-text {
    margin: 0;
    font-size: 13px;
    color: #718096;
    text-align: center;
}

/* レスポンシブ対応 */
@media (max-width: 640px) {
    .ipp-container {
        padding: 16px;
    }
    
    .ipp-form-wrapper {
        border-radius: 12px;
    }
    
    .ipp-header {
        padding: 24px 20px;
    }
    
    .ipp-site-title {
        font-size: 24px;
    }
    
    .ipp-content {
        padding: 32px 24px;
    }
    
    .ipp-form-title {
        /* font-size: 20px; */
        font-size: 18px;
    }
    
    .ipp-footer {
        padding: 20px 24px;
    }
}

/* ローディング状態 */
.ipp-submit-button.loading {
    pointer-events: none;
    opacity: 0.7;
}

.ipp-submit-button.loading .ipp-button-text::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* アクセシビリティ */
.ipp-input:focus-visible,
.ipp-submit-button:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* ダークモード対応（オプション） */
@media (prefers-color-scheme: dark) {
    .ipp-password-page {
        background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    }
}

