/* =========================================================
   株式会社LINK ログインページ
   共通ヘッダー・フッター：job-list.css
   ========================================================= */

.login-page {
    background: #fffaf4;
    color: #202731;
}

.login-page [hidden] {
    display: none !important;
}

.login-page button,
.login-page input {
    font: inherit;
}

.login-main {
    position: relative;
    min-height: 820px;
    overflow: hidden;
    padding: 68px 24px 88px;
    isolation: isolate;
}

.login-main__background {
    position: absolute;
    z-index: -4;
    inset: 0;
    background:
        url("/src/img/flow/flow-top.png")
        66% center / cover
        no-repeat;
    transform: scale(1.015);
}

.login-main__shade {
    position: absolute;
    z-index: -3;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(255, 251, 246, 0.98) 0%,
            rgba(255, 249, 242, 0.95) 32%,
            rgba(255, 247, 237, 0.79) 58%,
            rgba(255, 255, 255, 0.25) 79%,
            rgba(255, 255, 255, 0.13) 100%
        ),
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.22),
            rgba(255, 246, 235, 0.45)
        );
}

.login-main::after {
    position: absolute;
    z-index: -2;
    right: -5%;
    bottom: -145px;
    left: -5%;
    height: 245px;
    border-radius: 50% 50% 0 0;
    background: rgba(255, 255, 255, 0.88);
    content: "";
}

.login-main__circle {
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(241, 115, 38, 0.19);
    border-radius: 50%;
    pointer-events: none;
}

.login-main__circle--one {
    top: -230px;
    left: -170px;
    width: 470px;
    height: 470px;
}

.login-main__circle--two {
    right: -165px;
    bottom: -160px;
    width: 490px;
    height: 490px;
    background: rgba(255, 184, 112, 0.17);
}

.login-main__inner {
    position: relative;
    width: min(1120px, 100%);
    margin: 0 auto;
}

.login-main__message {
    position: absolute;
    z-index: 2;
    top: 45px;
    left: -175px;
    margin: 0;
    padding-bottom: 12px;
    color: #2d333a;
    font-family: "Klee One", "Noto Sans JP", sans-serif;
    font-size: 19px;
    font-weight: 600;
    letter-spacing: 0.1em;
    line-height: 1.85;
    transform: rotate(-6deg);
}

.login-main__message::after {
    display: block;
    width: 122%;
    height: 3px;
    margin-top: 4px;
    margin-left: -5px;
    border-radius: 999px;
    background:
        linear-gradient(
            90deg,
            #f16b1f 0 73%,
            rgba(241, 107, 31, 0)
        );
    content: "";
    transform: rotate(-4deg);
}

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

.login-card {
    position: relative;
    z-index: 3;
    display: grid;
    overflow: hidden;
    grid-template-columns:
        minmax(0, 1.08fr)
        minmax(0, 0.92fr);
    border: 1px solid rgba(255, 255, 255, 0.94);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow:
        0 27px 70px rgba(73, 53, 36, 0.16),
        0 5px 18px rgba(73, 53, 36, 0.06);
    backdrop-filter: blur(13px);
    -webkit-backdrop-filter: blur(13px);
}

.login-form-panel {
    min-width: 0;
    padding: 51px 58px 50px;
    background: rgba(255, 255, 255, 0.96);
}

.login-heading {
    display: flex;
    margin-bottom: 3px;
    align-items: center;
    gap: 15px;
}

.login-heading__icon {
    display: inline-flex;
    width: 51px;
    height: 51px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background:
        linear-gradient(
            135deg,
            #fff4e9,
            #ffe4cd
        );
    color: #f1661d;
    font-size: 22px;
}

.login-heading__english {
    margin: 0;
    color: #ed7a35;
    font-family: "Caveat", cursive;
    font-size: 34px;
    font-weight: 500;
    line-height: 1;
    transform: rotate(-5deg);
}

.login-form-panel h1 {
    margin: 4px 0 3px;
    color: #24344c;
    font-size: clamp(32px, 3vw, 43px);
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.4;
}

.login-lead {
    margin: 0 0 30px;
    color: #657080;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.8;
}

/* =========================================================
   案内・エラー表示
   ========================================================= */

.login-alert {
    display: grid;
    margin: 0 0 17px;
    padding: 12px 14px;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: start;
    gap: 9px;
    border: 1px solid;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.7;
}

.login-alert i {
    margin-top: 4px;
}

.login-alert p {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.login-alert--info {
    border-color: #c9def4;
    background: #f1f8ff;
    color: #28577f;
}

.login-alert--error {
    border-color: #f2beb8;
    background: #fff3f1;
    color: #a93f34;
}

.login-alert--warning {
    border-color: #efd197;
    background: #fff8e9;
    color: #8e5c0d;
}

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

.login-form {
    display: grid;
    gap: 20px;
}

.login-field {
    display: grid;
    min-width: 0;
    gap: 8px;
}

.login-field > label {
    color: #314058;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.6;
}

.login-field__control {
    position: relative;
    min-width: 0;
}

.login-field__control > i {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 17px;
    color: #6c7889;
    font-size: 17px;
    pointer-events: none;
    transform: translateY(-50%);
}

.login-field input {
    display: block;
    width: 100%;
    height: 56px;
    min-width: 0;
    padding: 11px 18px 11px 49px;
    border: 1px solid #ccd4df;
    border-radius: 9px;
    outline: 0;
    background: rgba(255, 255, 255, 0.98);
    color: #263347;
    font-size: 16px;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.login-field input::placeholder {
    color: #a4abb4;
}

.login-field input:hover {
    border-color: #aab4c1;
}

.login-field input:focus {
    border-color: #f17a35;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(241, 111, 33, 0.12);
}

.password-field input {
    padding-right: 82px;
}

.password-toggle {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: 8px;
    min-width: 58px;
    min-height: 38px;
    padding: 7px 10px;
    border: 1px solid #d5dbe3;
    border-radius: 7px;
    background: #f8f9fb;
    color: #344258;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}

.password-toggle:hover {
    border-color: #ee8b52;
    background: #fff7f0;
    color: #d85a16;
}

.password-toggle:focus-visible {
    outline: 3px solid rgba(241, 111, 33, 0.23);
    outline-offset: 2px;
}

.login-caps-hint {
    display: inline-flex;
    margin-top: 1px;
    align-items: center;
    gap: 5px;
    color: #9a620d;
    font-size: 12px;
    font-weight: 500;
}

.login-submit {
    position: relative;
    display: grid;
    width: 100%;
    min-height: 59px;
    margin-top: 3px;
    padding: 12px 22px;
    grid-template-columns: minmax(0, 1fr) 12px;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 999px;
    background:
        linear-gradient(
            110deg,
            #ff8a1b,
            #f0440b
        );
    box-shadow: 0 13px 27px rgba(224, 76, 10, 0.23);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition:
        box-shadow 0.23s ease,
        filter 0.23s ease,
        transform 0.23s ease;
}

.login-submit i {
    font-size: 11px;
}

.login-submit:hover {
    box-shadow: 0 17px 33px rgba(224, 76, 10, 0.31);
    filter: brightness(1.04);
    transform: translateY(-2px);
}

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

.login-submit:focus-visible,
.login-register-button:focus-visible {
    outline: 3px solid rgba(241, 111, 33, 0.28);
    outline-offset: 4px;
}

.forgot-password {
    margin-top: 15px;
    text-align: center;
}

.forgot-password a {
    color: #df5a18;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.forgot-password a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.login-divider {
    display: flex;
    margin: 29px 0 19px;
    align-items: center;
    gap: 15px;
    color: #697382;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.login-divider::before,
.login-divider::after {
    width: 100%;
    height: 1px;
    background: #dce1e7;
    content: "";
}

.login-register-button {
    display: grid;
    width: 100%;
    min-height: 56px;
    padding: 11px 20px;
    grid-template-columns: 22px minmax(0, 1fr) 12px;
    align-items: center;
    gap: 10px;
    border: 1px solid #f16b1f;
    border-radius: 999px;
    background: #fff;
    color: #df5a18;
    font-size: 15px;
    font-weight: 800;
    text-align: center;
    transition:
        background 0.22s ease,
        box-shadow 0.22s ease,
        color 0.22s ease,
        transform 0.22s ease;
}

.login-register-button i:last-child {
    font-size: 11px;
}

.login-register-button:hover {
    background: #fff5eb;
    box-shadow: 0 11px 24px rgba(180, 81, 26, 0.12);
    transform: translateY(-2px);
}

/* =========================================================
   右側サポートパネル
   ========================================================= */

.login-support-panel {
    position: relative;
    min-width: 0;
    padding: 52px 47px 46px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 96% 3%,
            rgba(255, 190, 125, 0.25),
            transparent 190px
        ),
        linear-gradient(
            145deg,
            rgba(255, 252, 247, 0.98),
            rgba(255, 244, 231, 0.94)
        );
}

.login-support-panel::after {
    position: absolute;
    right: -65px;
    bottom: -80px;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(240, 106, 29, 0.18);
    border-radius: 50%;
    content: "";
}

.login-support-panel__english {
    display: inline-block;
    margin: 0 0 14px;
    color: #ed8950;
    font-family: "Caveat", cursive;
    font-size: 28px;
    font-weight: 500;
    line-height: 1.05;
    transform: rotate(-6deg);
}

.login-support-panel h2 {
    position: relative;
    margin: 0 0 12px;
    color: #25354c;
    font-size: clamp(25px, 2.2vw, 33px);
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.43;
}

.login-support-panel h2::after {
    position: absolute;
    top: -7px;
    right: 2px;
    width: 32px;
    height: 27px;
    border-top: 4px solid #f26d20;
    border-right: 4px solid #f26d20;
    content: "";
    transform: rotate(20deg);
}

.login-support-panel__lead {
    margin: 0 0 24px;
    color: #5f6874;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.9;
}

.login-benefits {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 13px;
}

.login-benefit {
    display: grid;
    min-width: 0;
    min-height: 101px;
    padding: 16px 17px;
    grid-template-columns: 47px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    border: 1px solid rgba(230, 221, 212, 0.92);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 9px 23px rgba(73, 53, 36, 0.07);
}

.login-benefit__icon {
    display: flex;
    width: 47px;
    height: 47px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff2e6;
    color: #f2691c;
    font-size: 21px;
}

.login-benefit h3 {
    margin: 0 0 3px;
    color: #26364d;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.55;
}

.login-benefit p {
    margin: 0;
    color: #66707c;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.65;
}

/* =========================================================
   下部の安心ポイント
   ========================================================= */

.login-trust {
    position: relative;
    z-index: 3;
    display: grid;
    width: min(960px, calc(100% - 40px));
    margin: 36px auto 0;
    padding: 24px 26px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 15px 36px rgba(75, 55, 37, 0.09);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.login-trust__item {
    display: flex;
    min-width: 0;
    min-height: 65px;
    padding: 4px 24px;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border-right: 1px solid #e2ddd7;
}

.login-trust__item:last-child {
    border-right: 0;
}

.login-trust__item > i {
    flex: 0 0 auto;
    color: #f26c1f;
    font-size: 34px;
}

.login-trust__item p {
    display: grid;
    min-width: 0;
    margin: 0;
    gap: 2px;
    color: #2d3a4e;
    font-size: 13px;
    line-height: 1.55;
}

.login-trust__item strong {
    font-weight: 800;
}

.login-trust__item span {
    font-weight: 600;
}

/* =========================================================
   小さめのデスクトップ
   ========================================================= */

@media (max-width: 1480px) {
    .login-main__message {
        display: none;
    }
}

@media (max-width: 1180px) {
    .login-main {
        padding-top: 55px;
    }

    .login-main__background {
        background-position: 72% center;
    }

    .login-main__shade {
        background:
            linear-gradient(
                90deg,
                rgba(255, 250, 244, 0.97) 0%,
                rgba(255, 247, 238, 0.91) 48%,
                rgba(255, 250, 245, 0.56) 100%
            );
    }

    .login-form-panel {
        padding-right: 42px;
        padding-left: 42px;
    }

    .login-support-panel {
        padding-right: 36px;
        padding-left: 36px;
    }
}

/* =========================================================
   タブレット
   ========================================================= */

@media (max-width: 900px) {
    .login-main {
        min-height: 0;
        padding: 46px 20px 73px;
    }

    .login-main__background {
        background-position: 76% top;
    }

    .login-main__shade {
        background:
            linear-gradient(
                180deg,
                rgba(255, 255, 255, 0.62) 0%,
                rgba(255, 249, 242, 0.92) 330px,
                rgba(255, 249, 242, 0.98) 100%
            );
    }

    .login-main__inner {
        width: min(720px, 100%);
    }

    .login-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .login-form-panel {
        padding: 46px 54px 48px;
    }

    .login-support-panel {
        padding: 43px 54px 47px;
    }

    .login-support-panel h2 br {
        display: none;
    }

    .login-benefits {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: stretch;
    }

    .login-benefit {
        min-height: 190px;
        padding: 20px 17px;
        grid-template-columns: minmax(0, 1fr);
        align-content: start;
        text-align: center;
    }

    .login-benefit__icon {
        margin: 0 auto;
    }

    .login-trust {
        width: 100%;
        padding: 20px 18px;
    }

    .login-trust__item {
        padding: 4px 14px;
        gap: 11px;
    }

    .login-trust__item > i {
        font-size: 27px;
    }
}

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

@media (max-width: 768px) {
    .login-main {
        padding: 27px 14px 58px;
    }

    .login-main__background {
        background-position: 71% top;
        background-size: auto 360px;
        background-color: #fff8f0;
    }

    .login-main__shade {
        background:
            linear-gradient(
                180deg,
                rgba(255, 255, 255, 0.42) 0%,
                rgba(255, 249, 242, 0.9) 245px,
                #fff9f2 440px,
                #fff9f2 100%
            );
    }

    .login-main::after {
        display: none;
    }

    .login-main__circle--one {
        top: -160px;
        left: -270px;
    }

    .login-main__circle--two {
        right: -300px;
        bottom: -230px;
    }

    .login-card {
        border-radius: 18px;
        box-shadow: 0 18px 46px rgba(73, 53, 36, 0.14);
    }

    .login-form-panel {
        padding: 32px 21px 35px;
    }

    .login-heading {
        gap: 11px;
    }

    .login-heading__icon {
        width: 44px;
        height: 44px;
        font-size: 19px;
    }

    .login-heading__english {
        font-size: 30px;
    }

    .login-form-panel h1 {
        font-size: 31px;
    }

    .login-lead {
        margin-bottom: 25px;
        font-size: 13px;
    }

    .login-form {
        gap: 18px;
    }

    .login-field > label {
        font-size: 13px;
    }

    .login-field input {
        height: 56px;
        font-size: 16px;
    }

    .login-submit {
        min-height: 57px;
    }

    .login-divider {
        margin-top: 27px;
    }

    .login-register-button {
        min-height: 55px;
        font-size: 14px;
    }

    .login-support-panel {
        padding: 35px 20px 37px;
    }

    .login-support-panel__english {
        font-size: 25px;
    }

    .login-support-panel h2 {
        font-size: 25px;
    }

    .login-support-panel h2 br {
        display: block;
    }

    .login-support-panel__lead {
        font-size: 13px;
    }

    .login-benefits {
        grid-template-columns: minmax(0, 1fr);
        gap: 11px;
    }

    .login-benefit {
        min-height: 0;
        padding: 15px;
        grid-template-columns: 43px minmax(0, 1fr);
        align-content: normal;
        text-align: left;
    }

    .login-benefit__icon {
        width: 43px;
        height: 43px;
        margin: 0;
        font-size: 19px;
    }

    .login-benefit h3 {
        font-size: 13px;
    }

    .login-benefit p {
        font-size: 11px;
    }

    .login-trust {
        margin-top: 20px;
        padding: 9px 17px;
        grid-template-columns: minmax(0, 1fr);
        border-radius: 14px;
    }

    .login-trust__item {
        min-height: 76px;
        padding: 12px 7px;
        justify-content: flex-start;
        border-right: 0;
        border-bottom: 1px solid #e2ddd7;
    }

    .login-trust__item:last-child {
        border-bottom: 0;
    }

    .login-trust__item > i {
        width: 40px;
        text-align: center;
    }

    .login-trust__item p {
        font-size: 13px;
    }
}

/* =========================================================
   小さいスマートフォン
   ========================================================= */

@media (max-width: 420px) {
    .login-main {
        padding-right: 10px;
        padding-left: 10px;
    }

    .login-form-panel {
        padding-right: 17px;
        padding-left: 17px;
    }

    .login-alert {
        grid-template-columns: 18px minmax(0, 1fr);
        padding: 11px 12px;
    }

    .login-field input {
        padding-left: 44px;
    }

    .login-field__control > i {
        left: 15px;
    }

    .password-field input {
        padding-right: 74px;
    }

    .password-toggle {
        right: 7px;
        min-width: 54px;
    }

    .login-register-button {
        padding-right: 15px;
        padding-left: 15px;
    }
}

/* =========================================================
   動きを減らす設定
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .login-page *,
    .login-page *::before,
    .login-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* =========================================================
   企業様ページ：共通ベース / Navbar
   ※ 新しいスタッフログイン（.login-page）には影響させない
   ========================================================= */

body:not(.login-page) {
    margin: 0;
    color: #333;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        "Hiragino Kaku Gothic ProN",
        "Noto Sans JP",
        "Yu Gothic",
        "Meiryo",
        Arial,
        sans-serif;
}

body:not(.login-page) .navbar {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 14px 20px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

body:not(.login-page) .nav-left {
    display: flex;
    align-items: center;
    min-width: 0;
}

body:not(.login-page) .nav-left a {
    display: flex;
    align-items: center;
}

body:not(.login-page) .navbar .logo {
    display: block;
    width: auto;
    height: 40px;
    max-width: 100%;
    object-fit: contain;
}

body:not(.login-page) .nav-right {
    display: flex;
    align-items: center;
    min-width: 0;
    margin-left: auto;
}

body:not(.login-page) .nav-text {
    color: #333;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
}

/* スタッフログイン用の2カラムカードを企業様ページへ持ち込まない */
body:not(.login-page) .login-card {
    display: block;
    overflow: visible;
    grid-template-columns: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

@media (max-width: 768px) {
    body:not(.login-page) .navbar {
        gap: 8px;
        padding: 10px 14px;
    }

    body:not(.login-page) .nav-left {
        flex: 0 1 140px;
    }

    body:not(.login-page) .navbar .logo {
        width: auto;
        max-width: 140px;
        height: 34px;
    }

    body:not(.login-page) .nav-right {
        flex: 1 1 auto;
        justify-content: flex-end;
    }

    body:not(.login-page) .nav-text {
        overflow-wrap: anywhere;
        font-size: 15px;
        text-align: right;
        white-space: normal;
    }
}