﻿:root {
    --marine-navy: #18364f;
    --marine-deep-navy: #10283c;
    --marine-blue: #2c6f91;
    --marine-light-blue: #eaf4f8;
    --marine-border: #d9e3e8;
    --marine-text: #243746;
    --marine-muted: #6b7b88;
    --marine-white: #ffffff;
    --marine-danger: #c0392b;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
}

    body.login-page {
        min-height: 100vh;
        font-family: "Segoe UI", "Yu Gothic UI", "Meiryo", sans-serif;
        color: var(--marine-text);
        background: #f4f7f9;
    }

.login-wrapper {
    display: grid;
    grid-template-columns: minmax(380px, 46%) minmax(480px, 54%);
    min-height: 100vh;
}

.login-brand-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding: 64px;
    color: #ffffff;
    background: radial-gradient( circle at 20% 20%, rgba(255, 255, 255, 0.14), transparent 32% ), linear-gradient( 145deg, var(--marine-navy), var(--marine-deep-navy) );
}

    .login-brand-panel::before,
    .login-brand-panel::after {
        position: absolute;
        content: "";
        border: 1px solid rgba(255, 255, 255, 0.09);
        border-radius: 50%;
    }

    .login-brand-panel::before {
        width: 480px;
        height: 480px;
        right: -230px;
        top: -180px;
    }

    .login-brand-panel::after {
        width: 360px;
        height: 360px;
        left: -190px;
        bottom: -170px;
    }

.login-brand-content {
    position: relative;
    z-index: 1;
    max-width: 560px;
}

.login-brand-logo {
    display: block;
    width: min(420px, 90%);
    max-height: 180px;
    object-fit: contain;
    object-position: left center;
    margin-bottom: 48px;
}

.login-brand-message h1 {
    margin: 0 0 18px;
    font-size: clamp(36px, 4vw, 58px);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.login-brand-message p {
    margin: 0;
    font-size: 18px;
    line-height: 1.9;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.8);
}

.login-brand-footer {
    position: absolute;
    left: 64px;
    bottom: 34px;
    z-index: 1;
    font-size: 12px;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.52);
}

.login-form-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 36px 28px;
    background: linear-gradient( 180deg, #f9fbfc 0%, #eef3f6 100% );
}

.login-card {
    width: min(440px, 100%);
    padding: 42px 44px 38px;
    border: 1px solid rgba(217, 227, 232, 0.9);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 24px 60px rgba(16, 40, 60, 0.12), 0 6px 16px rgba(16, 40, 60, 0.06);
}

.login-card-header {
    margin-bottom: 32px;
    text-align: center;
}

.login-card-mark {
    width: 76px;
    height: 76px;
    margin-bottom: 18px;
    border-radius: 50%;
    object-fit: contain;
    background: #ffffff;
    box-shadow: 0 5px 16px rgba(16, 40, 60, 0.14);
}

.login-card-header h2 {
    margin: 0 0 10px;
    font-size: 28px;
    font-weight: 700;
    color: var(--marine-navy);
}

.login-card-header p {
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
    color: var(--marine-muted);
}

.login-form-group {
    margin-bottom: 22px;
}

.login-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #334c5e;
}

.login-input {
    min-height: 50px;
    padding: 12px 15px;
    border: 1px solid var(--marine-border);
    border-radius: 10px;
    font-size: 15px;
    color: var(--marine-text);
    background: #ffffff;
    box-shadow: none;
}

    .login-input::placeholder {
        color: #adb9c1;
    }

    .login-input:focus {
        border-color: var(--marine-blue);
        box-shadow: 0 0 0 4px rgba(44, 111, 145, 0.13);
    }

.password-input-wrapper {
    position: relative;
}

    .password-input-wrapper .login-input {
        padding-right: 72px;
    }

.password-toggle-button {
    position: absolute;
    top: 50%;
    right: 10px;
    padding: 5px 8px;
    border: 0;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--marine-blue);
    background: transparent;
    transform: translateY(-50%);
}

    .password-toggle-button:hover {
        background: var(--marine-light-blue);
    }

.login-option-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 26px;
}

.login-remember {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    font-size: 13px;
    color: var(--marine-muted);
    cursor: pointer;
}

    .login-remember input {
        width: 17px;
        height: 17px;
        accent-color: var(--marine-blue);
    }

.login-submit-button {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 11px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #ffffff;
    background: linear-gradient( 135deg, var(--marine-blue), var(--marine-navy) );
    box-shadow: 0 8px 20px rgba(24, 54, 79, 0.22);
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

    .login-submit-button:hover {
        transform: translateY(-1px);
        box-shadow: 0 12px 25px rgba(24, 54, 79, 0.28);
    }

    .login-submit-button:active {
        transform: translateY(0);
    }

.login-help {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #edf1f3;
    font-size: 12px;
    line-height: 1.7;
    text-align: center;
    color: #82909a;
}

.login-validation-summary {
    margin-bottom: 22px;
    padding: 12px 14px;
    border: 1px solid #efcbc7;
    border-radius: 9px;
    font-size: 13px;
    line-height: 1.6;
    color: #9d2e25;
    background: #fff4f2;
}

    .login-validation-summary:empty {
        display: none;
    }

    .login-validation-summary ul {
        margin: 0;
        padding-left: 20px;
    }

.login-field-error {
    display: block;
    min-height: 18px;
    margin-top: 5px;
    font-size: 12px;
    color: var(--marine-danger);
}

.login-copyright {
    margin-top: 25px;
    font-size: 12px;
    color: #8b98a1;
}

@media (max-width: 900px) {
    .login-wrapper {
        grid-template-columns: 1fr;
    }

    .login-brand-panel {
        min-height: 260px;
        padding: 38px 34px;
    }

    .login-brand-logo {
        width: min(310px, 80%);
        max-height: 120px;
        margin-bottom: 26px;
    }

    .login-brand-message h1 {
        font-size: 34px;
    }

    .login-brand-message p {
        font-size: 15px;
    }

    .login-brand-footer {
        display: none;
    }

    .login-form-panel {
        padding: 42px 20px;
    }
}

@media (max-width: 520px) {
    .login-brand-panel {
        min-height: 220px;
        padding: 30px 24px;
    }

    .login-brand-message h1 {
        font-size: 29px;
    }

    .login-card {
        padding: 34px 24px 30px;
        border-radius: 16px;
    }

    .login-card-mark {
        width: 68px;
        height: 68px;
    }
}

/* ========================================
   パスワード変更画面
======================================== */

.password-change-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px 24px;
    background: radial-gradient( circle at top left, rgba(44, 111, 145, 0.10), transparent 34% ), linear-gradient( 180deg, #f9fbfc 0%, #edf3f6 100% );
}

.password-change-card {
    width: min(500px, 100%);
    padding: 40px 44px 36px;
    border: 1px solid rgba(217, 227, 232, 0.95);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 60px rgba(16, 40, 60, 0.13), 0 6px 18px rgba(16, 40, 60, 0.06);
}

.password-change-header {
    margin-bottom: 30px;
    text-align: center;
}

.password-change-logo {
    width: 82px;
    height: 82px;
    margin-bottom: 18px;
    border-radius: 50%;
    object-fit: contain;
    background: #ffffff;
    box-shadow: 0 5px 18px rgba(16, 40, 60, 0.15);
}

.password-change-header h1 {
    margin: 0 0 10px;
    font-size: 27px;
    font-weight: 700;
    color: var(--marine-navy);
}

.password-change-header p {
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
    color: var(--marine-muted);
}

.password-initial-message {
    margin-top: 16px;
    padding: 13px 15px;
    border: 1px solid #cfe1e9;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.7;
    color: #315d73;
    background: #edf7fa;
}

.password-rule-panel {
    margin: -4px 0 22px;
    padding: 17px 18px 15px;
    border: 1px solid #dce7ec;
    border-radius: 12px;
    background: #f8fbfc;
}

.password-rule-title {
    margin-bottom: 11px;
    font-size: 13px;
    font-weight: 700;
    color: #334c5e;
}

.password-meter {
    width: 100%;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e5ecef;
}

.password-meter-bar {
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: #d6dee2;
    transition: width 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

    .password-meter-bar.is-weak {
        background: #cf6a60;
    }

    .password-meter-bar.is-medium {
        background: #d6a144;
    }

    .password-meter-bar.is-strong {
        background: linear-gradient( 90deg, #2c6f91, #18364f );
        box-shadow: 0 0 12px rgba(44, 111, 145, 0.35);
    }

.password-strength-text {
    min-height: 20px;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #71808b;
}

.password-rule-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 14px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

    .password-rule-list li {
        display: flex;
        align-items: center;
        gap: 7px;
        font-size: 12px;
        color: #89959d;
        transition: color 0.2s ease, transform 0.2s ease;
    }

.password-rule-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid #ccd6db;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 800;
    color: transparent;
    background: #ffffff;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.password-rule-list li.is-valid {
    color: #245f7c;
    font-weight: 600;
}

    .password-rule-list li.is-valid
    .password-rule-icon {
        color: #ffffff;
        border-color: #2c6f91;
        background: #2c6f91;
        transform: scale(1.06);
    }

.password-match-message {
    min-height: 19px;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 600;
}

    .password-match-message.is-match {
        color: #2c6f91;
    }

    .password-match-message.is-not-match {
        color: var(--marine-danger);
    }

.password-change-back {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #edf1f3;
    text-align: center;
}

    .password-change-back a {
        font-size: 13px;
        font-weight: 600;
        color: var(--marine-blue);
        text-decoration: none;
    }

        .password-change-back a:hover {
            text-decoration: underline;
        }

@media (max-width: 560px) {
    .password-change-page {
        justify-content: flex-start;
        padding: 22px 14px;
    }

    .password-change-card {
        padding: 32px 22px 28px;
        border-radius: 16px;
    }

    .password-rule-list {
        grid-template-columns: 1fr;
    }

    .password-change-logo {
        width: 72px;
        height: 72px;
    }
}