/* ============================================
   勤怠スタンプ - ログイン画面
   ink   : #1C1A17  (墨)
   paper : #FAF6EF  (生成り紙)
   shu   : #B3341F  (朱肉)
   amber : #C98A2C  (琥珀)
   ============================================ */

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
}

body {
    font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
    color: #2a2620;
    background: #faf6ef;
    -webkit-font-smoothing: antialiased;
}

/* 1カラム構成：タイトル＋フォームを縦に並べて画面中央に配置する */
.login-shell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100dvh;
    padding: 32px;
}

/* ---------- ブランドタイトル ---------- */

.brand-title {
    margin: 0 0 32px;
    font-family: "Shippori Mincho", serif;
    font-weight: 700;
    font-size: 26px;
    letter-spacing: 0.04em;
    color: #1c1a17;
    text-align: center;
    white-space: nowrap;
    position: relative;
    padding-bottom: 18px;
}

/* 朱肉カラーのワンポイント下線（印鑑のイメージ） */
.brand-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 32px;
    height: 3px;
    background: #b3341f;
    border-radius: 2px;
}

@media (max-width: 480px) {
    .brand-title {
        font-size: 18px;
        white-space: normal;
        margin-bottom: 24px;
    }
}

/* ---------- フォームパネル ---------- */

.login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 32px;
}

.login-form {
    width: 100%;
    max-width: 360px;
}

.login-title {
    margin: 0 0 6px;
    font-family: "Shippori Mincho", serif;
    font-weight: 700;
    font-size: 28px;
    color: #1c1a17;
}

.login-sub {
    margin: 0 0 32px;
    font-size: 13.5px;
    color: #7a7365;
    line-height: 1.6;
}

.login-alert {
    margin-bottom: 20px;
    padding: 12px 14px;
    border: 1px solid rgba(179, 52, 31, 0.35);
    background: rgba(179, 52, 31, 0.06);
    color: #a32e1a;
    font-size: 13px;
    border-radius: 4px;
}

.login-field {
    margin-bottom: 20px;
}

.login-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #4a453b;
}

.login-field input {
    width: 100%;
    padding: 12px 14px;
    font-size: 14.5px;
    font-family: inherit;
    color: #1c1a17;
    background: #ffffff;
    border: 1px solid #e4dccb;
    border-radius: 4px;
    outline: none;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

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

.login-field input:focus {
    border-color: #c98a2c;
    box-shadow: 0 0 0 3px rgba(201, 138, 44, 0.16);
}

.login-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    font-size: 13px;
}

.login-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4a453b;
    cursor: pointer;
}

.login-remember input {
    width: 15px;
    height: 15px;
    accent-color: #b3341f;
}

.login-forgot {
    color: #8b8272;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition:
        color 0.15s ease,
        border-color 0.15s ease;
}

.login-forgot:hover {
    color: #b3341f;
    border-color: #b3341f;
}

.login-submit {
    width: 100%;
    padding: 13px 16px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    color: #faf6ef;
    background: #1c1a17;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition:
        background 0.15s ease,
        transform 0.05s ease;
}

.login-submit:hover {
    background: #b3341f;
}

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

.login-submit:focus-visible,
.login-field input:focus-visible {
    outline: 2px solid #c98a2c;
    outline-offset: 2px;
}

/* ---------- レスポンシブ ---------- */

@media (max-width: 860px) {
    .login-panel {
        padding: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-field input,
    .login-submit {
        transition: none;
    }
}
