/**
 * ファイル名: volunteer-calendar-login.css
 * 説明: カレンダーのログイン機能用スタイルシート
 * 作成日時: 2025-01-30
 * 
 * 更新履歴:
 * - ログイン機能の独立したショートコード用にスタイルを最適化
 * - モーダルデザインの改善
 * - レスポンシブ対応の強化
 * - 2.1.1 手動で登録フォームのレイアウトを調整 2.1.0->2.1.1
 * - 2.1.2 ログインボタンの色調整
 *
 * @author 小坂田秀之
 * @version 2.1.2
 */

/* === ログインエリアのベーススタイル === */
.volunteer-login-area {
    max-width: 480px;
    margin: 15px auto;
    padding:20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* === ログイン済み表示 === */
.login-status {
    text-align: center;
    padding: 15px;
}

.welcome-message {
    font-size: 16px;
    color: #0073aa;
    margin: 0 0 15px 0;
}

.login-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.login-actions .button {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 25px;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid #ddd;
    background: #f7f7f7;
    color: #555;
    transition: all 0.3s ease;
}

.login-actions .button:hover {
    background: #e0e0e0;
    border-color: #999;
}

.login-actions .logout-button {
    background: #d63638;
    color: white;
    border-color: #d63638;
}

.login-actions .logout-button:hover {
    background: #b32d2e;
    border-color: #b32d2e;
}

/* === ログインフォーム === */
.login-form-container {
    padding: 0;
}

.login-form-container h3 {
    text-align: center;
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
}

.form-group {
    margin-bottom: 15px;
    margin: 10px;
}
.form-group-row{
	display:flex;
}

.bunruifrag_description{
	font-size:small;
}

.form-group label {
    display: inline-block;
    font-weight: 600;
    color: #333;
    margin:10px 15px 0 0;
}
.checkbox-group  label {
    margin-top:0px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 50%;
    padding: 3px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}
.form-group textarea{
	width:100%;
}

.form-group input[type="checkbox"] {
    margin-right: 5px;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.form-actions .button {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 25px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    background-color:#e8901e;
    color:white;
}
.form-actions .button:hover {
    background-color:salmon;
}

.form-actions .button-primary {
    background: #538918;
    color: white;
}

.form-actions .button-primary:hover {
    background: #84b788;
    color: white;
}

/* === メッセージ表示 === */
.volunteer-message {
    max-width: 480px;
    margin: 15px auto;
    padding: 12px 20px;
    border-radius: 4px;
    text-align: center;
    display: none;
}

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

.volunteer-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.welcome-message{
    color:black;
}

/* === モーダル === */
.volunteer-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999999;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    line-height: 1;
}

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

/* === フォーム共通スタイル === */
.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group.half {
    flex: 1;
    margin-bottom: 0;
}

.required {
    color: #d63638;
    font-weight: bold;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

/* === レスポンシブデザイン === */
@media (max-width: 768px) {
    .volunteer-login-area {
        margin: 15px;
        padding: 15px;
    }
    
    .modal-content {
        padding: 20px;
        width: 95%;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-group.half {
        margin-bottom: 15px;
    }
    
    .login-actions,
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .login-actions .button,
    .form-actions .button {
        width: 100%;
        margin-bottom: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .volunteer-login-area {
        margin: 10px;
        padding: 10px;
    }
    
    .login-form-container h3 {
        font-size: 16px;
    }
    
    .form-group input {
        padding: 8px;
        font-size: 13px;
    }
    
    .modal-content {
        padding: 15px;
    }
}