/* ── background ── */
.bg {
    position: fixed;
    inset: 0;
    background: url('../image/top_back.png') center center / cover no-repeat;
    z-index: 0;
}

.bg-overlay {
    position: fixed;
    inset: 0;
    background: var(--black);
    opacity: 0.52;
    z-index: 0;
}

/* ── layout ── */
.container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: var(--gap-md) 20px;
}

/* ── card ── */
.card {
    width: 100%;
    max-width: 400px;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 32px rgba(0, 0, 0, 0.8);
    padding: var(--gap-lg) var(--gap-md);
    animation: fadeUp 1.2s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── card header ── */
.card-header {
    text-align: center;
    margin-bottom: var(--gap-md);
}

/* .card-label ベーススタイルは style.css — ここは差分のみ */
.card-label {
    display: block;
    margin-bottom: 18px;
}

.card-brand-logo {
    display: block;
    height: 48px;
    width: auto;
    margin: 0 auto 20px;
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

.card-divider {
    width: 32px;
    height: 1px;
    margin: 0 auto;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ── form fields ── */
.login-form {
    display: flex;
    flex-direction: column;
    gap: var(--gap-md);
}

.field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.field-label {
    font-family: var(--ff-sans);
    font-size: var(--fs-small);

    letter-spacing: 0.45em;
    text-transform: uppercase;
    color: var(--gold);
}

.field-input {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    padding: 10px 0;
    font-family: var(--ff-sans);
    font-size: var(--fs-small);

    letter-spacing: 0.15em;
    color: var(--white);
    outline: none;
    transition: border-color 0.3s ease;
    width: 100%;
}

.field-input:focus {
    border-bottom-color: var(--gold);
}

.field-input::placeholder {
    color: var(--white-ghost);
}

/* ── autofill override ── */
.field-input:-webkit-autofill,
.field-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 100px var(--black) inset;
    -webkit-text-fill-color: var(--white);
    caret-color: var(--white);
}

/* ── button layout (style.css のベースをオーバーライド) ── */
.btn-login {
    margin-top: 12px;
    display: block;
    width: 100%;
    padding: 14px 0;
    font-size: var(--fs-small);
    letter-spacing: 0.5em;
    color: var(--white);
    border-color: var(--gold);
}
.btn-login:hover {
    color: var(--white);
    background: var(--orange);
    border-color: var(--orange);
}

/* ── パスワード忘れリンク ── */
.login-forgot-wrap {
    text-align: center;
    margin-top: 16px;
}
.login-forgot-link {
    font-size: var(--fs-small);
    letter-spacing: 0.1em;
    color: #999999;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}
.login-forgot-link:hover {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

/* ── responsive ── */
@media (max-width: 479px) {
    .card { padding: var(--gap-md) var(--gap-sm); }
    .card-label { letter-spacing: 0.35em; }
    .field-input { font-size: var(--fs-small); }
}

@media (min-width: 768px) {
    .card { max-width: 440px; }
}
