﻿/* ========================================
   パスワード設定画面
======================================== */

.account-form-page {
    max-width: 980px;
    margin: 0 auto;
}

.account-password-panel {
    max-width: 900px;
    margin: 0 auto;
}

.account-password-panel .form-panel-body {
    padding-right: 34px;
    padding-left: 34px;
}

.account-password-panel .form-row {
    grid-template-columns: 190px minmax(0, 1fr);
}

.account-password-panel .form-input-area {
    max-width: 520px;
}

/* ========================================
   ValidationSummary
======================================== */

.account-validation-summary-area {
    padding: 0 34px;
}

.account-validation-summary-area
.form-validation-summary {
    margin-top: 18px;
    margin-bottom: 4px;
}

/* ========================================
   パスワード入力
======================================== */

.account-password-input {
    position: relative;
}

.account-password-input .form-page-control {
    padding-right: 50px;
}

.account-password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    color: rgba(170, 220, 231, 0.72);
    background-color: transparent;
    border: 0;
    border-radius: 4px;
    transform: translateY(-50%);
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.account-password-toggle:hover,
.account-password-toggle:focus {
    color: #ffffff;
    background-color: rgba(0, 216, 255, 0.08);
    outline: none;
}

.account-password-toggle i {
    font-size: 1rem;
}

/* ========================================
   完了画面
======================================== */

.account-complete-panel {
    max-width: 720px;
    margin: 0 auto;
}

.account-complete-content {
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 48px 30px;
    text-align: center;
}

.account-complete-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin-bottom: 18px;
    color: #53eadc;
    font-size: 2.2rem;
    background-color: rgba(0, 224, 203, 0.09);
    border: 1px solid rgba(0, 224, 203, 0.35);
    border-radius: 50%;
    box-shadow: 0 0 18px rgba(0, 224, 203, 0.14);
}

.account-complete-title {
    margin: 0 0 8px;
    color: #f3fdff;
    font-size: 1.25rem;
    font-weight: 600;
}

.account-complete-description {
    margin: 0 0 24px;
    color: rgba(197, 226, 233, 0.68);
    font-size: 0.9rem;
}

/* ========================================
   メッセージ
======================================== */

.system-message {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
    padding: 16px 18px;
    color: #eefcff;
    background-color: rgba(5, 22, 32, 0.98);
    border: 1px solid;
    border-left-width: 6px;
    border-radius: 6px;
    box-shadow: 0 0 18px rgba(0, 216, 255, 0.1);
}

.system-message-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    font-size: 1.25rem;
}

.system-message-content {
    flex: 1;
    min-width: 0;
}

.system-message-title {
    margin-bottom: 3px;
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 700;
}

.system-message-text {
    color: rgba(222, 242, 247, 0.8);
    font-size: 0.85rem;
    line-height: 1.55;
}

.system-message-success {
    background-color: rgba(0, 210, 190, 0.12);
    border-color: rgba(0, 224, 203, 0.48);
    border-left-color: #00e0cb;
}

.system-message-success .system-message-icon {
    color: #55ecde;
}

.system-message-error {
    background-color: rgba(220, 53, 69, 0.12);
    border-color: rgba(255, 90, 104, 0.48);
    border-left-color: #ff5a68;
}

.system-message-error .system-message-icon {
    color: #ff8a93;
}

/* ========================================
   レスポンシブ
======================================== */

@media (max-width: 767.98px) {
    .account-password-panel .form-panel-body {
        padding-right: 18px;
        padding-left: 18px;
    }

    .account-password-panel .form-row {
        grid-template-columns: 1fr;
    }

    .account-validation-summary-area {
        padding: 0 18px;
    }

    .account-complete-content {
        padding: 38px 20px;
    }
}

/* ========================================
   パスワードリセット画面
======================================== */

html,
body {
    min-height: 100%;
}

.account-page {
    min-height: 100vh;
    margin: 0;
    color: #dff7fc;
    background: radial-gradient( circle at top, rgba(0, 216, 255, 0.08), transparent 38% ), linear-gradient( 135deg, #07131d 0%, #02080d 100% );
}

/* 画面中央配置 */
.account-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 20px;
}

/* メインカード */
.account-card {
    width: 100%;
    max-width: 560px;
    padding: 38px 42px;
    background-color: rgba(4, 18, 28, 0.97);
    border: 1px solid rgba(0, 216, 255, 0.35);
    border-radius: 8px;
    box-shadow: 0 0 28px rgba(0, 216, 255, 0.09), inset 0 0 22px rgba(0, 216, 255, 0.025);
}

/* ========================================
   パスワードリセット：ヘッダー
======================================== */

.account-header {
    margin-bottom: 30px;
    text-align: center;
}

.account-subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-bottom: 9px;
    color: #00d8ff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
}

    .account-subtitle i {
        font-size: 0.9rem;
        filter: drop-shadow(0 0 5px rgba(0, 216, 255, 0.5));
    }

.account-title {
    margin: 0 0 12px;
    color: #f2fdff;
    font-size: clamp(1.65rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: 0.04em;
}

.account-description {
    margin: 0;
    color: rgba(198, 227, 234, 0.7);
    font-size: 0.9rem;
    line-height: 1.75;
}

/* ========================================
   パスワードリセット：フォーム
======================================== */

.account-form {
    width: 100%;
}

.account-form-group {
    margin-bottom: 22px;
}

.account-label {
    display: block;
    margin-bottom: 8px;
    color: #d8f3f8;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.account-input-wrapper {
    position: relative;
}

.account-input-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    z-index: 2;
    color: rgba(0, 216, 255, 0.72);
    font-size: 1rem;
    pointer-events: none;
    transform: translateY(-50%);
}

.account-control {
    min-height: 48px;
    padding-right: 14px;
    padding-left: 44px;
    color: #eefcff;
    background-color: rgba(2, 12, 19, 0.96);
    border: 1px solid rgba(0, 216, 255, 0.3);
    border-radius: 5px;
    box-shadow: inset 0 0 8px rgba(0, 216, 255, 0.02);
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

    .account-control::placeholder {
        color: rgba(177, 210, 219, 0.4);
    }

    .account-control:hover {
        border-color: rgba(0, 216, 255, 0.52);
    }

    .account-control:focus {
        color: #ffffff;
        background-color: rgba(3, 20, 31, 0.98);
        border-color: #00d8ff;
        box-shadow: 0 0 0 0.15rem rgba(0, 216, 255, 0.09), 0 0 11px rgba(0, 216, 255, 0.15);
    }

    .account-control:-webkit-autofill,
    .account-control:-webkit-autofill:hover,
    .account-control:-webkit-autofill:focus,
    .account-control:-webkit-autofill:active {
        -webkit-text-fill-color: #eefcff !important;
        caret-color: #eefcff;
        -webkit-box-shadow: 0 0 0 1000px #03131e inset !important;
        box-shadow: 0 0 0 1000px #03131e inset !important;
        border-color: #00d8ff;
    }

/* ========================================
   パスワードリセット：バリデーション
======================================== */

.account-validation-message {
    display: block;
    margin-top: 7px;
    color: #ff8b95;
    font-size: 0.78rem;
}

    .account-validation-message:empty {
        display: none;
    }

.account-error-message {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 22px;
    padding: 14px 16px;
    color: #ffe1e4;
    background-color: rgba(220, 53, 69, 0.11);
    border: 1px solid rgba(255, 90, 104, 0.4);
    border-left: 5px solid #ff5a68;
    border-radius: 5px;
    box-shadow: 0 0 14px rgba(255, 90, 104, 0.08);
}

.account-error-icon {
    flex: 0 0 auto;
    margin-top: 1px;
    color: #ff7c87;
    font-size: 1.25rem;
}

.account-error-content {
    min-width: 0;
}

.account-error-title {
    margin-bottom: 4px;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
}

.account-error-text {
    color: rgba(255, 222, 225, 0.85);
    font-size: 0.8rem;
    line-height: 1.55;
}

.account-validation-summary {
    margin: 0;
    padding: 0;
}

    .account-validation-summary ul {
        margin: 0;
        padding-left: 18px;
    }

/* MVC標準バリデーション */
.field-validation-error {
    display: block;
    margin-top: 7px;
    color: #ff8b95;
    font-size: 0.78rem;
}

.input-validation-error {
    border-color: #ff5a68 !important;
    box-shadow: 0 0 0 0.15rem rgba(255, 90, 104, 0.08) !important;
}

/* ========================================
   パスワードリセット：操作ボタン
======================================== */

.account-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
}

.account-submit-btn,
.account-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 46px;
    padding: 9px 18px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    border-width: 1px;
    border-style: solid;
    border-radius: 5px;
    box-shadow: none;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

/* 送信 */
.account-submit-btn {
    color: #4debdc !important;
    background-color: rgba(0, 210, 190, 0.08);
    border-color: rgba(0, 224, 203, 0.7);
}

    .account-submit-btn:hover,
    .account-submit-btn:focus {
        color: #ffffff !important;
        background-color: rgba(0, 210, 190, 0.17);
        border-color: #55f4e6;
        box-shadow: 0 0 11px rgba(0, 224, 203, 0.17);
    }

/* 戻る */
.account-back-btn {
    color: #bddbe2 !important;
    background-color: rgba(175, 207, 215, 0.04);
    border-color: rgba(175, 207, 215, 0.4);
}

    .account-back-btn:hover,
    .account-back-btn:focus {
        color: #ffffff !important;
        background-color: rgba(175, 207, 215, 0.11);
        border-color: rgba(225, 247, 251, 0.7);
    }

/* ========================================
   送信完了モーダル
======================================== */

.account-sent-modal {
    overflow: hidden;
    color: #e8fcff;
    background-color: #071923;
    border: 1px solid rgba(0, 224, 203, 0.5);
    border-radius: 7px;
    box-shadow: 0 0 30px rgba(0, 224, 203, 0.14), inset 0 0 20px rgba(0, 224, 203, 0.02);
}

.account-sent-modal-header {
    padding: 16px 20px;
    background-color: #0b202c;
    border-bottom: 1px solid rgba(0, 224, 203, 0.28);
}

    .account-sent-modal-header .modal-title {
        display: inline-flex;
        align-items: center;
        gap: 9px;
        margin: 0;
        color: #d9fff9;
        font-size: 1.05rem;
        font-weight: 700;
        line-height: 1;
        letter-spacing: 0.04em;
    }

        .account-sent-modal-header .modal-title i {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: #43e6d6;
            font-size: 1.18rem;
            filter: drop-shadow(0 0 5px rgba(0, 224, 203, 0.45));
        }

.account-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    color: rgba(232, 247, 250, 0.68);
    background-color: transparent;
    border: 0;
    border-radius: 4px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

    .account-modal-close:hover,
    .account-modal-close:focus {
        color: #ffffff;
        background-color: rgba(255, 255, 255, 0.08);
        outline: none;
    }

.account-sent-modal-body {
    padding: 28px;
    text-align: center;
}

.account-sent-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    margin-bottom: 17px;
    color: #50eadc;
    font-size: 2rem;
    background-color: rgba(0, 224, 203, 0.09);
    border: 1px solid rgba(0, 224, 203, 0.32);
    border-radius: 50%;
    box-shadow: 0 0 16px rgba(0, 224, 203, 0.12);
}

.account-sent-title {
    margin: 0 0 9px;
    color: #ffffff;
    font-size: 1.18rem;
    font-weight: 700;
}

.account-sent-description {
    max-width: 420px;
    margin: 0 auto 20px;
    color: rgba(204, 232, 238, 0.75);
    font-size: 0.88rem;
    line-height: 1.7;
}

.account-sent-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 14px;
    color: #c9e9ef;
    font-size: 0.8rem;
    line-height: 1.6;
    text-align: left;
    background-color: rgba(0, 216, 255, 0.05);
    border: 1px solid rgba(0, 216, 255, 0.2);
    border-left: 3px solid #00d8ff;
    border-radius: 4px;
}

    .account-sent-notice i {
        flex: 0 0 auto;
        margin-top: 2px;
        color: #00d8ff;
    }

.account-sent-modal-footer {
    padding: 16px 20px;
    background-color: rgba(0, 0, 0, 0.14);
    border-top: 1px solid rgba(0, 224, 203, 0.18);
}

    .account-sent-modal-footer .account-submit-btn {
        width: auto;
        min-width: 190px;
    }

/* ========================================
   開発用リセットURL
======================================== */

.account-development-url {
    margin-top: 18px;
    padding: 14px;
    text-align: left;
    background-color: rgba(255, 190, 72, 0.07);
    border: 1px solid rgba(255, 190, 72, 0.3);
    border-left: 3px solid #ffbe48;
    border-radius: 4px;
}

.account-development-url-title {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 9px;
    color: #ffe1a3;
    font-size: 0.8rem;
    font-weight: 700;
}

.account-development-url-field {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.account-development-url-input {
    min-width: 0;
    color: #f4fcff;
    background-color: rgba(2, 12, 19, 0.95);
    border-color: rgba(255, 190, 72, 0.32);
}

.account-copy-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 42px;
    padding: 0;
    color: #ffd17a;
    background-color: rgba(255, 190, 72, 0.08);
    border: 1px solid rgba(255, 190, 72, 0.45);
    border-radius: 4px;
}

    .account-copy-button:hover,
    .account-copy-button:focus {
        color: #ffffff;
        background-color: rgba(255, 190, 72, 0.17);
        border-color: #ffd271;
        outline: none;
    }

/* ========================================
   モーダル背景
======================================== */

.modal-backdrop.show {
    opacity: 0.72;
}

/* ========================================
   パスワードリセット：レスポンシブ
======================================== */

@media (max-width: 575.98px) {
    .account-wrapper {
        align-items: flex-start;
        min-height: 100svh;
        padding: max(24px, env(safe-area-inset-top)) 14px max(24px, env(safe-area-inset-bottom));
    }

    .account-card {
        width: 100%;
        padding: 28px 20px;
    }

    .account-header {
        margin-bottom: 25px;
    }

    .account-title {
        font-size: 1.5rem;
    }

    .account-description {
        font-size: 0.78rem;
        line-height: 1.8;
    }

        /* HTMLに記載している改行をスマホでも有効にする */
        .account-description br {
            display: block;
        }

    .account-control {
        /* Safariで入力時に自動拡大されるのを防ぐ */
        min-height: 50px;
        font-size: 16px;
    }

    .account-actions {
        margin-top: 26px;
    }

    .account-submit-btn,
    .account-back-btn {
        min-height: 48px;
    }

    .account-sent-modal-body {
        padding: 22px 18px;
    }

    .account-sent-modal-footer {
        padding: 14px 18px;
    }

        .account-sent-modal-footer .account-submit-btn {
            width: 100%;
            min-width: 0;
        }

    .account-development-url-field {
        flex-direction: column;
    }

    .account-copy-button {
        width: 100%;
        min-height: 42px;
    }
}

/* ========================================
   パスワード設定画面
======================================== */

.account-set-password-card {
    max-width: 560px;
}

/* 左アイコンと右側の表示切替ボタン分を確保 */
.account-password-control {
    padding-right: 52px;
    padding-left: 44px;
}

/* パスワード表示切替 */
.account-input-wrapper .account-password-toggle {
    position: absolute;
    top: 50%;
    right: 9px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    color: rgba(170, 220, 231, 0.72);
    background-color: transparent;
    border: 0;
    border-radius: 4px;
    transform: translateY(-50%);
    transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

    .account-input-wrapper .account-password-toggle:hover,
    .account-input-wrapper .account-password-toggle:focus {
        color: #ffffff;
        background-color: rgba(0, 216, 255, 0.09);
        box-shadow: 0 0 7px rgba(0, 216, 255, 0.08);
        outline: 0;
    }

    .account-input-wrapper .account-password-toggle i {
        font-size: 1rem;
    }

/* パスワード補足 */
.account-password-help {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 7px;
    color: rgba(183, 218, 226, 0.58);
    font-size: 0.78rem;
    line-height: 1.5;
}

    .account-password-help i {
        flex: 0 0 auto;
        color: rgba(0, 216, 255, 0.62);
    }

/* 完了状態 */
.account-complete-content {
    padding-right: 0;
    padding-left: 0;
}

    .account-complete-content .account-submit-btn {
        width: auto;
        min-width: 190px;
        text-decoration: none;
    }

@media (max-width: 575.98px) {
    .account-set-password-card {
        max-width: none;
    }

    .account-complete-content .account-submit-btn {
        width: 100%;
        min-width: 0;
    }
}