
/* =========================================================
   基本設定
========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "Hiragino Kaku Gothic ProN",
        "Hiragino Sans",
        "Yu Gothic",
        Meiryo,
        sans-serif;
}

body {
    color: #124fba;
}

button,
input {
    font: inherit;
}

button {
    -webkit-tap-highlight-color: transparent;
}


/* =========================================================
   ページ全体
========================================================= */

.admin-login-page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;

    background:
        linear-gradient(
            120deg,
            #d9efff 0%,
            #c4e4ff 48%,
            #d8edff 100%
        );
}


/* =========================================================
   ヘッダー
========================================================= */

.admin-login-header {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;

    width: 100%;
    min-height: 110px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 5.5%;
}

.admin-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;

    color: #1461dc;
    font-size: 31px;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.admin-brand-mark {
    width: 45px;
    height: 45px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #1387ff,
            #3458f4
        );

    color: #ffffff;
    font-size: 27px;

    box-shadow:
        0 6px 14px rgba(34, 111, 231, 0.17);
}

.admin-header-message {
    margin: 0;
    color: #0752b7;
    font-size: 14px;
    font-weight: 700;
}


/* =========================================================
   メイン
========================================================= */

.admin-login-main {
    min-height: 100vh;

    display: grid;

    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(520px, 0.95fr);
}


/* =========================================================
   左側
========================================================= */

.admin-login-hero {
    position: relative;

    min-height: 100vh;

    display: flex;
    align-items: center;

    padding: 145px 7% 80px;

    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;

    width: min(100%, 610px);
}

.hero-admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    margin-bottom: 21px;
    padding: 7px 13px;

    border: 1px solid rgba(29, 105, 219, 0.17);
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.35);

    color: #1964c9;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.11em;
}

.hero-content h1 {
    margin: 0;

    color: #1459c6;

    font-size: clamp(48px, 5.4vw, 76px);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.05;
}

.hero-content h1 span {
    display: block;
    margin-top: 12px;

    font-size: 0.48em;
    letter-spacing: 0;
}

.hero-lead {
    margin: 37px 0 0;

    color: #124eac;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.7;
}

.hero-description {
    margin: 23px 0 0;

    color: #2561aa;
    font-size: 13px;
    line-height: 2;
}


/* =========================================================
   管理機能
========================================================= */

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;

    margin-top: 43px;
}

.hero-feature {
    min-width: 155px;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 12px 15px;

    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 12px;

    background: rgba(255, 255, 255, 0.23);

    backdrop-filter: blur(5px);
}

.hero-feature-icon {
    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.65);
    color: #1769d6;

    font-weight: 800;
}

.hero-feature strong {
    display: block;
    color: #1659b8;
    font-size: 11px;
}

.hero-feature small {
    display: block;
    margin-top: 2px;

    color: #5480b4;
    font-size: 8px;
}


/* =========================================================
   左側装飾
========================================================= */

.hero-decoration {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.13);
    pointer-events: none;
}

.hero-decoration-one {
    width: 500px;
    height: 500px;

    bottom: -280px;
    left: -150px;
}

.hero-decoration-two {
    width: 330px;
    height: 330px;

    top: 170px;
    right: -180px;
}


/* =========================================================
   右側
========================================================= */

.admin-login-area {
    min-height: 100vh;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 135px 7% 70px;
}


/* =========================================================
   ログインカード
========================================================= */

.admin-login-card {
    width: min(100%, 510px);

    padding: 47px 43px 37px;

    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 26px;

    background: rgba(255, 255, 255, 0.88);

    box-shadow:
        0 20px 55px rgba(30, 89, 156, 0.12);

    backdrop-filter: blur(13px);
}


/* =========================================================
   盾アイコン
========================================================= */

.login-shield {
    position: relative;

    width: 61px;
    height: 68px;

    margin: 0 auto 16px;

    border: 4px solid #1c79e9;
    border-radius: 14px 14px 23px 23px;

    background: #edf7ff;
}

.login-shield::after {
    content: "";

    position: absolute;
    left: 50%;
    bottom: -4px;

    width: 27px;
    height: 27px;

    border-right: 4px solid #1c79e9;
    border-bottom: 4px solid #1c79e9;

    background: #edf7ff;

    transform:
        translateX(-50%)
        rotate(45deg);
}

.shield-head,
.shield-body {
    position: absolute;
    z-index: 2;

    left: 50%;

    background: #1c79e9;

    transform: translateX(-50%);
}

.shield-head {
    top: 15px;

    width: 13px;
    height: 13px;

    border-radius: 50%;
}

.shield-body {
    top: 32px;

    width: 27px;
    height: 15px;

    border-radius: 14px 14px 7px 7px;
}


/* =========================================================
   カードタイトル
========================================================= */

.login-card-header {
    margin-bottom: 30px;
    text-align: center;
}

.login-card-header h2 {
    margin: 0 0 9px;

    color: #0f4c9f;
    font-size: 28px;
    font-weight: 800;
}

.login-card-header p {
    margin: 0;

    color: #587ca9;
    font-size: 11px;
    line-height: 1.7;
}


/* =========================================================
   フォーム
========================================================= */

.admin-login-form {
    width: 100%;
}

.login-form-group {
    width: 100%;
    margin-bottom: 19px;
}

.login-form-group label {
    display: flex;
    align-items: center;
    gap: 7px;

    margin-bottom: 8px;

    color: #285a98;
    font-size: 12px;
    font-weight: 700;
}

.form-label-icon {
    width: 17px;
    color: #265eaa;
    text-align: center;
}


/* 入力欄 */

.login-form-group > input,
.login-input-wrapper input {
    width: 100%;
    height: 54px;

    padding: 0 17px;

    border: 1px solid #c7dcf5;
    border-radius: 12px;

    background: rgba(255, 255, 255, 0.9);

    color: #23588f;
    font-family: inherit;
    font-size: 13px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.login-form-group > input::placeholder,
.login-input-wrapper input::placeholder {
    color: #91aad0;
}

.login-form-group > input:focus,
.login-input-wrapper input:focus {
    border-color: #3689ef;
    background: #ffffff;

    box-shadow:
        0 0 0 4px rgba(54, 137, 239, 0.1);
}


/* パスワード入力欄 */

.login-input-wrapper {
    position: relative;
    width: 100%;
}

.login-input-wrapper input {
    padding-right: 55px;
}


/* パスワード表示ボタン */

.password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;

    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: none;
    border-radius: 8px;

    background: transparent;

    cursor: pointer;

    transform: translateY(-50%);

    transition: background 0.2s ease;
}

.password-toggle:hover {
    background: #edf5ff;
}

.password-eye {
    position: relative;

    width: 20px;
    height: 14px;

    border: 2px solid #6e94c3;
    border-radius: 50%;
}

.password-eye::after {
    content: "";

    position: absolute;
    top: 50%;
    left: 50%;

    width: 6px;
    height: 6px;

    border-radius: 50%;
    background: #6e94c3;

    transform: translate(-50%, -50%);
}


/* =========================================================
   エラーメッセージ・通知
========================================================= */

.login-form-error {
    margin: 0 0 16px;
    padding: 10px 13px;

    border: 1px solid #ffd0d4;
    border-radius: 8px;

    background: #fff1f3;
    color: #df4654;

    font-size: 11px;
    line-height: 1.6;
}

.login-form-error[hidden] {
    display: none;
}

.login-messages {
    width: 100%;
    margin-bottom: 17px;
}

.login-message {
    margin-bottom: 8px;
    padding: 11px 13px;

    border: 1px solid #c9e1fa;
    border-radius: 8px;

    background: #eef7ff;
    color: #3575b9;

    font-size: 11px;
    line-height: 1.6;
}

.login-message.error {
    border-color: #ffd0d4;
    background: #fff1f3;
    color: #df4654;
}

.login-message.success {
    border-color: #c5ead5;
    background: #effbf4;
    color: #25834c;
}


/* =========================================================
   ログインボタン
========================================================= */

.admin-login-button {
    position: relative;

    width: 100%;
    min-height: 57px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    margin-top: 28px;
    padding: 12px 48px;

    border: 0;
    border-radius: 30px;

    background:
        linear-gradient(
            90deg,
            #1781f8,
            #5868f6
        );

    color: #ffffff;

    font-family: inherit;
    font-size: 15px;
    font-weight: 800;

    box-shadow:
        0 9px 22px rgba(40, 103, 235, 0.2);

    cursor: pointer;

    transition:
        transform 0.15s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
}

.admin-login-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 12px 27px rgba(40, 103, 235, 0.27);
}

.admin-login-button:active {
    transform: translateY(0);
}

.admin-login-button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.login-button-icon {
    font-size: 19px;
}

.login-button-arrow {
    position: absolute;
    right: 27px;

    font-size: 26px;
    font-weight: 400;
}


/* =========================================================
   補助リンク
========================================================= */

.login-help {
    margin-top: 23px;
    text-align: center;
}

.login-help a {
    color: #1764d1;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.login-help a:hover {
    text-decoration: underline;
}


/* =========================================================
   区切り
========================================================= */

.login-divider {
    display: flex;
    align-items: center;
    gap: 15px;

    margin: 30px 0 20px;
}

.login-divider span {
    flex: 1;
    height: 1px;
    background: #d3e2f2;
}

.login-divider small {
    color: #7c9abb;
    font-size: 10px;
}


/* =========================================================
   セキュリティ
========================================================= */

.login-security-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    padding: 12px 14px;

    border-radius: 10px;

    background: #eef7ff;
}

.security-note-icon {
    flex-shrink: 0;
    color: #2780e8;
    font-size: 17px;
}

.login-security-note strong {
    display: block;
    margin-bottom: 3px;

    color: #2865a9;
    font-size: 10px;
}

.login-security-note p {
    margin: 0;

    color: #7492b2;
    font-size: 8px;
    line-height: 1.6;
}


/* =========================================================
   一般ログインへ
========================================================= */

.user-login-link {
    margin-top: 18px;

    color: #2a68b8;
    font-size: 10px;
    text-decoration: none;
}

.user-login-link:hover {
    text-decoration: underline;
}


/* =========================================================
   フォーカス表示
========================================================= */

.admin-login-button:focus-visible,
.password-toggle:focus-visible,
.login-help a:focus-visible,
.user-login-link:focus-visible,
.admin-brand:focus-visible {
    outline: 3px solid rgba(27, 116, 229, 0.3);
    outline-offset: 4px;
}


/* =========================================================
   レスポンシブ：タブレット
========================================================= */

@media (max-width: 1050px) {

    .admin-login-main {
        grid-template-columns: 1fr;
    }

    .admin-login-hero {
        display: none;
    }

    .admin-login-area {
        padding: 130px 25px 60px;
    }

}


/* =========================================================
   レスポンシブ：スマートフォン
========================================================= */

@media (max-width: 600px) {

    .admin-login-header {
        min-height: 85px;
        padding: 0 20px;
    }

    .admin-brand {
        gap: 10px;
        font-size: 23px;
    }

    .admin-brand-mark {
        width: 37px;
        height: 37px;
        font-size: 22px;
    }

    .admin-header-message {
        display: none;
    }

    .admin-login-area {
        min-height: 100vh;
        padding: 105px 14px 40px;
    }

    .admin-login-card {
        padding: 35px 20px 28px;
        border-radius: 20px;
    }

    .login-card-header h2 {
        font-size: 24px;
    }

    .login-form-group > input,
    .login-input-wrapper input {
        height: 50px;
    }

    .admin-login-button {
        min-height: 53px;
        font-size: 14px;
    }

}


/* =========================================================
   小型スマートフォン
========================================================= */

@media (max-width: 360px) {

    .admin-brand {
        font-size: 20px;
    }

    .admin-login-card {
        padding: 30px 16px 24px;
    }

    .login-card-header h2 {
        font-size: 22px;
    }

}
