/**
 * 会員ページログイン・登録フォームのスタイル
 * 会员页面登录・注册表单的样式
 */

/* 会員ページコンテナ */
.member-page-container {
    max-width: 600px;
    margin: 30px auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

/* タブ */
.member-page-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.member-page-tabs .tab-button {
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    color: #666;
    transition: color 0.3s;
}

.member-page-tabs .tab-button:hover {
    color: #4285f4;
}

.member-page-tabs .tab-button.active {
    color: #4285f4;
    font-weight: bold;
}

.member-page-tabs .tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #4285f4;
}

/* フォーム */
.member-page-form-container {
    margin-top: 50px;
    margin-bottom: 20px;
}

.member-page-form {
    margin-top: 20px;
}

.member-page-form .form-group {
    margin-bottom: 20px;
    margin-top: 30px;
    display: flex;
    align-items: center;
}

.member-page-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
    white-space: nowrap;
    width: 30%;
}

.member-page-form input {
    width: 70%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.member-page-form input:focus {
    border-color: #4285f4;
    outline: none;
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2);
}

.member-page-form .submit-button {
    margin: 180px auto 0 auto!important; /* 增加上边距，从150px改为180px */
    width: fit-content; /* 避免拉满宽度 */    
    /* width: auto; */
    padding: 6px 30px;
    background-color: #4285f4;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

/* 确保按钮边距不被其他规则覆盖 */
.post_content .member-page-form .submit-button {
    margin: 25px auto 0 auto!important;
}

.member-page-form .submit-button:hover {
    background-color: #3367d6;
}

.member-page-form .submit-button:disabled {
    background-color: #a0c3ff;
    cursor: not-allowed;
}

/* メッセージ */
.member-page-message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 4px;
    font-size: 14px;
    display: none;
}

.member-page-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.member-page-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ログイン済み状態 */
.member-page-logged-in {
    text-align: center;
    padding: 30px;
}

.member-page-logged-in h2 {
    color: #333;
    margin-bottom: 20px;
}

.member-page-logged-in .member-name {
    font-weight: bold;
    color: #4285f4;
}

.member-page-logged-in .member-actions {
    margin-top: 30px;
}

.member-page-logged-in .member-button {
    display: inline-block;
    padding: 10px 20px;
    margin: 0 10px;
    background-color: #4285f4;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.member-page-logged-in .member-button:hover {
    background-color: #3367d6;
}

.member-page-logged-in .logout-button {
    background-color: #f44336;
}

.member-page-logged-in .logout-button:hover {
    background-color: #d32f2f;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .member-page-container {
        padding: 20px;
        margin: 20px 10px;
    }
    
    .member-page-tabs .tab-button {
        padding: 8px 15px;
        font-size: 14px;
    }
}