﻿/* =========================================
           ログインページ
           common.css の変数を利用
        ========================================= */

html,
body {
    height: 100%;
}

.cms-login-body {
    margin: 0;
    min-height: 100vh;
    background: #f3f3f5;
    color: var(--brand-black);
}

.cms-login-page {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 72px 16px 40px;
}

.cms-login-wrap {
    width: 100%;
    max-width: 780px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cms-login-logo {
    margin-bottom: 52px;
    text-align: center;
}

    .cms-login-logo img {
        max-width: 320px;
        width: 100%;
        height: auto;
        display: inline-block;
    }

.cms-login-card {
    width: 100%;
    max-width: 602px;
    background: #ffffff;
    border-radius: 10px;
    padding: 42px 32px 44px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.02);
}

.cms-login-title {
    margin: 0 0 36px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--brand-blue);
}

.cms-login-form {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.cms-login-field + .cms-login-field {
    margin-top: 20px;
}

.cms-login-input.form-control {
    height: 50px;
    border: 1px solid #b9c8db;
    border-radius: 2px;
    font-size: 1rem;
    color: var(--brand-black);
    background-color: #fff;
    padding: 0 14px;
    box-shadow: none;
}

    .cms-login-input.form-control::placeholder {
        color: #9aa9bf;
    }

    .cms-login-input.form-control:focus {
        border-color: var(--brand-blue);
        box-shadow: 0 0 0 0.15rem rgba(51, 77, 110, 0.12);
    }

.cms-login-error {
    margin: 16px 0 0;
    font-size: 0.875rem;
    color: var(--brand-red);
    text-align: center;
}

.cms-login-actions {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.cms-login-submit.btn {
    min-width: 240px;
    height: 44px;
    border-radius: 3px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.cms-login-links {
    margin-top: 16px;
    text-align: center;
}

.cms-login-forgot {
    font-size: 0.95rem;
    color: var(--brand-blue);
    text-decoration: none;
}

    .cms-login-forgot:hover {
        text-decoration: underline;
    }

/* 画面が小さい時 */
@media (max-width: 767.98px) {
    .cms-login-page {
        padding-top: 48px;
    }

    .cms-login-logo {
        margin-bottom: 36px;
    }

        .cms-login-logo img {
            max-width: 240px;
        }

    .cms-login-card {
        padding: 32px 20px 36px;
        border-radius: 8px;
    }

    .cms-login-title {
        margin-bottom: 28px;
        font-size: 1.75rem;
    }

    .cms-login-form {
        max-width: 100%;
    }

    .cms-login-submit.btn {
        width: 100%;
        min-width: 0;
    }
}

.cms-forgot-card {
    max-width: 602px;
}

.cms-forgot-description {
    max-width: 400px;
    margin: 0 auto 36px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--brand-blue);
    text-align: left;
}

.cms-forgot-actions {
    margin-top: 40px;
}

.cms-forgot-submit.btn {
    min-width: 252px;
    height: 44px;
    border-radius: 3px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--brand-blue);
    background-color: #b9c8db;
    border-color: #b9c8db;
}

    .cms-forgot-submit.btn:hover,
    .cms-forgot-submit.btn:focus,
    .cms-forgot-submit.btn:active {
        color: var(--brand-blue);
        background-color: #aebfd5;
        border-color: #aebfd5;
    }

    .cms-forgot-submit.btn:disabled {
        color: var(--brand-blue);
        background-color: #c7d3e1;
        border-color: #c7d3e1;
        opacity: 1;
    }

.cms-forgot-note {
    margin-top: 20px;
    text-align: center;
    font-size: 0.95rem;
    color: var(--brand-blue);
    line-height: 1.6;
}

.cms-login-error {
    margin-top: 8px;
    font-size: 0.875rem;
    color: var(--brand-red);
    line-height: 1.5;
}

.cms-login-error-box,
.cms-login-success-box {
    margin-bottom: 16px;
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 0.875rem;
    line-height: 1.5;
}

.cms-login-error-box {
    color: var(--brand-red);
    border: 1px solid rgba(172, 31, 36, 0.18);
    background: rgba(172, 31, 36, 0.06);
}

.cms-login-success-box {
    color: var(--brand-blue);
    border: 1px solid rgba(51, 77, 110, 0.18);
    background: rgba(51, 77, 110, 0.06);
}

.cms-forgot-sent-card {
    max-width: 900px;
    padding: 56px 48px 60px;
}

.cms-forgot-sent-body {
    max-width: 560px;
    margin: 0 auto;
}

.cms-forgot-sent-message {
    margin: 0;
    font-size: 1rem;
    line-height: 1.9;
    color: var(--brand-blue);
    text-align: left;
}

    .cms-forgot-sent-message strong {
        font-weight: 700;
    }

.cms-forgot-sent-actions {
    margin-top: 56px;
}

.cms-forgot-sent-links {
    margin-top: 28px;
}

.cms-forgot-submit.btn {
    min-width: 240px;
    height: 44px;
    border-radius: 3px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--brand-blue);
    background-color: #b9c8db;
    border: 1px solid #b9c8db;
}

    .cms-forgot-submit.btn:hover,
    .cms-forgot-submit.btn:focus,
    .cms-forgot-submit.btn:active {
        color: var(--brand-blue);
        background-color: #adbed3;
        border-color: #adbed3;
    }

    .cms-forgot-submit.btn:disabled {
        color: var(--brand-blue);
        background-color: #c7d3e1;
        border-color: #c7d3e1;
        opacity: 1;
    }

.cms-reset-card {
    max-width: 602px;
}

.cms-reset-description {
    max-width: 360px;
    margin: 0 auto 36px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--brand-blue);
    text-align: left;
}

.cms-reset-actions {
    margin-top: 40px;
}

.cms-reset-submit.btn {
    min-width: 250px;
}

@media (max-width: 767.98px) {
    .cms-forgot-sent-card {
        padding: 36px 20px 40px;
    }

    .cms-forgot-sent-body {
        max-width: 100%;
    }

    .cms-forgot-sent-message {
        font-size: 0.95rem;
        line-height: 1.8;
    }

    .cms-forgot-sent-actions {
        margin-top: 36px;
    }
}
