.password-main {
    margin-top: 80px;
}

/* .l-main section { margin: 20px } より詳細度を上げてセンタリングを有効化 */
.l-main .password-block {
    max-width: 840px;
    margin: 20px auto;
}

dl.password-items {
    justify-content: center;
}

.l-main__block dl.password-items dt {
    width: 13rem;
    border-bottom: none;
    padding-right: 16px;
}

/* ベースの2列レイアウトを打ち消して1列表示にする */
.l-main__block dl.password-items dt:nth-of-type(2n) {
    margin-left: 0;
}

.l-main__block dl.password-items dd {
    width: calc(100% - 13rem);
    flex: none;
    border-bottom: none;
}

.l-main__block dl.password-items .input-group {
    max-width: 360px;
    flex-wrap: nowrap;
    align-items: stretch;
}

/* カード内の上下padding拡張（.l-main__block .body の 20px を上書き） */
.l-main .password-block .body {
    padding: 40px 20px;
}

.password-block .body > p {
    margin-bottom: 24px;
}

/* .l-main input { border: 0 } より詳細度を上げてborderを復元 */
.l-main .password-items .form-control {
    border: 1px solid #ced4da;
    height: 32px;
}

.password-items .input-group-append .btn {
    height: 32px;
    line-height: 1;
    padding: 0 10px;
}

/* ===== OTP入力画面専用（otp_input.jsp のみ） ===================================
   入力欄をブロック中央にセンタリング（タイトル・ボタンと同じ中心線に揃える）。
   「認証コード」ラベルは中央寄せの外に絶対配置し、入力欄の位置には影響させない。 */
.l-main__block dl.password-items.otp-items {
    position: relative;        /* ラベル絶対配置の基準 */
    align-items: center;
}
/* 入力欄：ブロック中央にセンタリング */
.l-main__block dl.password-items.otp-items dd {
    width: 100%;
    justify-content: center;
}
.l-main .password-items.otp-items .form-control {
    width: 220px;              /* ★入力欄の幅（仮）。変えたら下の 110px も「幅の半分」に直す */
}
/* ラベル：中央寄せの外に絶対配置（入力欄の位置に影響しない） */
.l-main__block dl.password-items.otp-items dt {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    right: calc(50% + 110px + 16px);  /* 入力欄の左端から左の余白 */
    width: auto;
    padding: 0;
    white-space: nowrap;              /* ラベルの折り返し防止 */
}
/* ============================================================================ */

.password-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.policy-box {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 12px 16px;
    margin-top: 16px;
    font-size: 13px;
    white-space: pre-line;
    color: #c0392b;
}

.all-error-message {
    font-size: 16px;
    font-weight: bold;
    text-align: left;
    padding-left: 16px;
    white-space: nowrap;
    color: red;
    margin-bottom: 16px;
}

.password-error-message {
    white-space: pre-line;
}
