/* パスワードリセットページ専用スタイル */

/* ========================================
   1. ヘッダーセクション
======================================== */
.password-reset-header {
    text-align: center;
    margin-bottom: 2rem;
}

.password-reset-header h1 {
    color: var(--bb-main-text-color, #333);
    font-size: var(--bb-font-size-3xl, 1.875rem);
    margin-bottom: var(--bb-space-2, 0.5rem);
    border-bottom: 3px solid var(--bb-accent-color, #ffd700);
    padding-bottom: var(--bb-space-2, 0.5rem);
}

.password-reset-header p {
    color: var(--bb-gray-600, #666);
    font-size: var(--bb-font-size-base, 1rem);
    margin-top: var(--bb-space-4, 1rem);
    line-height: 1.6;
}

/* ========================================
   2. フォームスタイル
======================================== */
.password-reset-form,
.password-reset-confirm-form {
    max-width: 500px;
    margin: 0 auto 2rem;
    padding: 2rem;
    background: var(--bb-bg-primary, #fff);
    border: 1px solid var(--bb-gray-300, #ddd);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.password-reset-form .form-group,
.password-reset-confirm-form .form-group {
    margin-bottom: 1.5rem;
}

.password-reset-form label,
.password-reset-confirm-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--bb-main-text-color, #333);
    font-weight: 600;
    font-size: var(--bb-font-size-base, 1rem);
}

.password-reset-form input[type="email"],
.password-reset-form input[type="password"],
.password-reset-confirm-form input[type="password"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--bb-gray-300, #ddd);
    border-radius: 4px;
    font-size: var(--bb-font-size-base, 1rem);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.password-reset-form input[type="email"]:focus,
.password-reset-form input[type="password"]:focus,
.password-reset-confirm-form input[type="password"]:focus {
    outline: none;
    border-color: var(--bb-accent-color, #ffd700);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

.form-description {
    margin-top: 0.5rem;
    font-size: var(--bb-font-size-sm, 0.875rem);
    color: var(--bb-gray-600, #666);
}

/* ========================================
   3. ボタンスタイル
======================================== */
.password-reset-form .form-actions,
.password-reset-confirm-form .form-actions {
    margin-top: 2rem;
}

.password-reset-form .btn-primary,
.password-reset-confirm-form .btn-primary {
    width: 100%;
    background-color: var(--bb-accent-color, #ffd700);
    color: var(--bb-main-text-color, #333);
    border: none;
    padding: 0.875rem 1.5rem;
    font-weight: bold;
    font-size: var(--bb-font-size-base, 1rem);
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s, transform 0.1s;
}

.password-reset-form .btn-primary:hover,
.password-reset-confirm-form .btn-primary:hover {
    background-color: #e6c200;
    transform: translateY(-1px);
}

.password-reset-form .btn-primary:active,
.password-reset-confirm-form .btn-primary:active {
    transform: translateY(0);
}

/* ========================================
   4. メッセージスタイル
======================================== */
.error-message {
    background-color: #ffebee;
    color: #c62828;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #c62828;
    border-radius: 4px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.error-message p {
    margin: 0.5rem 0;
}

.error-message p:first-child {
    margin-top: 0;
}

.error-message p:last-child {
    margin-bottom: 0;
}

.success-message {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #2e7d32;
    border-radius: 4px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.success-message p {
    margin: 0.5rem 0;
}

.success-message p:first-child {
    margin-top: 0;
}

.success-message p:last-child {
    margin-bottom: 0;
}

.success-message .note {
    font-size: var(--bb-font-size-sm, 0.875rem);
    margin-top: 0.75rem;
    opacity: 0.9;
}

/* ========================================
   5. ナビゲーションリンク
======================================== */
.back-to-login {
    text-align: center;
    margin-top: 2rem;
}

.back-to-login p {
    margin: 0;
}

.back-to-login a {
    color: var(--bb-link-color, #0066cc);
    text-decoration: none;
    font-size: var(--bb-font-size-base, 1rem);
    transition: color 0.3s;
}

.back-to-login a:hover {
    color: var(--bb-link-hover-color, #0052a3);
    text-decoration: underline;
}

/* ========================================
   6. レスポンシブデザイン
======================================== */
@media (max-width: 768px) {
    .password-reset-header h1 {
        font-size: 1.5rem;
    }

    .password-reset-header p {
        font-size: 0.9375rem;
    }

    .password-reset-form,
    .password-reset-confirm-form {
        padding: 1.5rem;
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .error-message,
    .success-message {
        margin-left: 1rem;
        margin-right: 1rem;
    }
}

@media (max-width: 480px) {
    .password-reset-header h1 {
        font-size: 1.25rem;
    }

    .password-reset-form,
    .password-reset-confirm-form {
        padding: 1rem;
    }

    .password-reset-form .btn-primary,
    .password-reset-confirm-form .btn-primary {
        padding: 0.75rem 1rem;
        font-size: 0.9375rem;
    }
}

/* ========================================
   7. アクセシビリティ
======================================== */
.password-reset-form input:invalid:not(:focus):not(:placeholder-shown),
.password-reset-confirm-form input:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #c62828;
}

.password-reset-form input:valid:not(:placeholder-shown),
.password-reset-confirm-form input:valid:not(:placeholder-shown) {
    border-color: #2e7d32;
}

/* フォーカス時の視覚的フィードバック強化 */
.password-reset-form input:focus-visible,
.password-reset-confirm-form input:focus-visible {
    outline: 2px solid var(--bb-accent-color, #ffd700);
    outline-offset: 2px;
}
