/*
 * register.css - 新規登録ページの専用スタイル
 * テーマカラー：#e91e63 (濃いピンク), #f8bbd0 (薄いピンク)
 */

/* ====================
    コンテナと背景
    ==================== */
.register-container {
    max-width: 750px; 
    margin: 0 auto;
    padding: 40px 20px 100px 20px; /* ←この行を修正 */
    min-height: calc(100vh - 120px); 
    background: linear-gradient(to bottom right, #f8bbd0 0%, #d81b60 600px); 
}

/* ====================
    ヒーローセクション (タイトル、サブタイトル)
    ==================== */
.register-hero {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px; 
}

.register-hero h1 {
    font-size: 32px;
    color: white;
    margin-bottom: 10px;
    font-weight: 700;
}

.register-hero p {
    color: #fff5f5;
    font-size: 16px;
}

/* ====================
    フォームカード
    ==================== */
.register-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 40px;
}

/* ====================
    エラーリスト
    ==================== */
.error-list {
    background: #ffebee;
    border: 1px solid #e91e63;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 25px;
}

.error-list ul {
    margin: 0;
    padding-left: 20px;
    color: #c33;
}

/* ====================
    フォーム部品
    ==================== */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-group label .required {
    color: #e91e63;
    margin-left: 3px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e91e63;
}

.form-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: #e91e63;
}

.form-group small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #999;
}

/* 登録ボタン */
.btn-register-form { 
    width: 100%;
    padding: 16px; 
    background: linear-gradient(135deg, #ff4081 0%, #e91e63 100%); 
    color: white;
    border: none;
    border-radius: 8px; 
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 30px;
    box-shadow: 0 8px 20px rgba(233, 30, 99, 0.3);
}

.btn-register-form:hover {
    opacity: 0.9;
    box-shadow: 0 10px 25px rgba(233, 30, 99, 0.5);
}

/* ログインリンク */
.login-link {
    text-align: center;
    margin-top: 30px;
    color: #666;
    font-size: 15px;
}

.login-link a {
    color: #e91e63;
    text-decoration: none;
    font-weight: 700;
}

/* ====================
   プロフィールセクション用スタイル
   ==================== */
.profile-section {
    background: #f8f8f8;
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
}

.profile-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #d81b60;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.required-badge {
    background: #d81b60;
    color: white;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.optional-badge {
    background: #e0e0e0;
    color: #666;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 10px;
}

.section-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.select-buttons {
    display: flex;
    gap: 6px;
}

.btn-select {
    padding: 4px 12px;
    font-size: 12px;
    border: 1px solid #d81b60;
    background: white;
    color: #d81b60;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.btn-select:hover {
    background: #d81b60;
    color: white;
}

.btn-select-all {
    border-color: #d81b60;
    color: #d81b60;
}

.btn-select-all:hover {
    background: #d81b60;
    color: white;
}

.btn-clear-all {
    border-color: #999;
    color: #999;
}

.btn-clear-all:hover {
    background: #999;
    color: white;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.checkbox-item {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-item:hover {
    border-color: #f8bbd0;
}

.checkbox-item input[type="checkbox"]:checked ~ .icon,
.checkbox-item input[type="checkbox"]:checked ~ .checkbox-label {
    font-weight: 600;
}

.checkbox-item:has(input[type="checkbox"]:checked) {
    background: #fce4ec;
    border-color: #d81b60;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #d81b60;
}

.checkbox-label {
    font-size: 15px;
    cursor: pointer;
    user-select: none;
}

.icon {
    font-size: 20px;
}

.radio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.radio-item {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.radio-item:hover {
    border-color: #f8bbd0;
}

.radio-item:has(input[type="radio"]:checked) {
    background: #fce4ec;
    border-color: #d81b60;
    font-weight: 600;
}

.radio-item input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #d81b60;
}

/* ====================
   アバター選択用スタイル
   ==================== */
.btn-avatar-select {
    padding: 12px 30px;
    background: linear-gradient(135deg, #f8bbd0 0%, #e91e63 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: block;
    margin: 0 auto;
}

.btn-avatar-select:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(216, 27, 96, 0.3);
}

.avatar-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    overflow-y: auto;
}

.avatar-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.avatar-modal-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.avatar-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.avatar-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #d81b60;
}

.avatar-modal-close {
    font-size: 32px;
    color: #999;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    width: 40px;
    height: 40px;
    line-height: 40px;
}

.avatar-modal-close:hover {
    color: #333;
}

.avatar-categories {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.avatar-category-btn {
    padding: 10px 20px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s;
}

.avatar-category-btn:hover {
    border-color: #f8bbd0;
}

.avatar-category-btn.active {
    background: #fce4ec;
    border-color: #d81b60;
    color: #d81b60;
}

.avatar-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.avatar-item {
    cursor: pointer;
    border: 3px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
    aspect-ratio: 1;
}

.avatar-item:hover {
    border-color: #f8bbd0;
    transform: scale(1.05);
}

.avatar-item.selected {
    border-color: #d81b60;
    box-shadow: 0 0 0 3px rgba(216, 27, 96, 0.2);
}

.avatar-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .register-card {
        padding: 20px;
    }
    
    .checkbox-grid,
    .radio-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .select-buttons {
        width: 100%;
        justify-content: flex-end;
    }
}
/* ====================
/* ====================
   血液型・星座用スタイル（横並びドロップダウン）
   ==================== */
.blood-zodiac-row {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

/* ====================
   活動可能時間用スタイル（横並びドロップダウン）
   ==================== */
.time-dropdown-row {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .blood-zodiac-row,
    .time-dropdown-row {
        flex-direction: column;
        gap: 0;
    }
}