/* #region フォームセクション */
.form-section {
    background: white;
}

.form-section-header {
    border-left: 4px solid #DC0714;
    padding-left: 15px;
    margin-bottom: 30px;
}

.form-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.form-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.8;
}

.registration-form {
    width: 100%;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus {
    border-color: #DC0714;
    box-shadow: 0 0 0 3px rgba(220, 7, 20, 0.1);
}

.form-input::placeholder {
    color: #aaa;
}

/* フォーム行（2列レイアウト） */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 0;
}

.form-group-half {
    flex: 1;
}

.form-label-empty {
    visibility: hidden;
}

/* #endregion */

/* #region パスワード入力 */
.password-input-wrapper {
    position: relative;
}

.password-input {
    padding-right: 50px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.password-toggle:hover {
    opacity: 0.7;
}

.password-toggle.active .eye-icon {
    position: relative;
}

.password-toggle.active .eye-icon::after {
    content: '';
    position: absolute;
    left: -2px;
    top: 50%;
    width: 28px;
    height: 2px;
    background: #666;
    transform: translateY(-50%) rotate(-45deg);
}

/* #endregion */


/* #region 決算書の有無 */

[hidden] {
    display: none !important;
}

.opening-source-section {
    margin: 8px 0 24px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.opening-source-section h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
}

.opening-source-lead {
    margin: 0 0 16px;
    color: #444;
    line-height: 1.6;
}

.opening-source-choices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.opening-source-choice {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 0;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    line-height: 1.5;
}

.opening-source-choice:has(input:checked) {
    border-color: #4CAF50;
    background: #f1f8e9;
}

.opening-source-choice strong {
    display: block;
}

.opening-source-choice small {
    display: block;
    margin-top: 4px;
    color: #555;
}

.capital-suggestion {
    margin-top: 16px;
    padding: 14px 16px;
    background: #f1f8e9;
    border-radius: 8px;
}

.capital-suggestion p {
    margin: 0 0 8px;
}

.capital-suggestion-button {
    margin-top: 8px;
    padding: 8px 16px;
    border: 1px solid #4CAF50;
    border-radius: 4px;
    background: #fff;
    color: #2e7d32;
    font-weight: 700;
    cursor: pointer;
}

.capital-suggestion-button:hover {
    background: #e8f5e9;
}

@media (max-width: 768px) {
    .opening-source-choices {
        grid-template-columns: 1fr;
    }
}

/* #endregion */

/* #region 勘定科目設定への案内 */
.account-item-settings-link {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.6;
    color: #666;
}

.account-item-settings-link a {
    color: #1565C0;
    font-weight: 600;
    text-decoration: underline;
}

.account-item-settings-link a:hover {
    color: #0d47a1;
}
/* #endregion */

/* #region レスポンシブデザイン */
@media (max-width: 768px) {
    .form-section-header {
        padding-left: 12px;
    }
}
/* #endregion */