html, body { height: 100%;
    margin: 0; /* bodyが持つデフォルトの余白をなくす */
}
.body_base {
    background: linear-gradient(135deg,#777777,#292929 );
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center; /* ← これを追加（縦方向の中央揃え） */
}

.header_table {
    display: flex;
    justify-content: flex-start; /* 左寄せ配置に変更 */
    align-items: flex-start;
    border-radius: 10px;
    margin: 0px auto 0 auto;
    width: 500px;
    padding: 10px;
    font-family: "Times New Roman";
    background: linear-gradient(to bottom,
        rgba(201,201,201,0.1),
        rgba(201,201,201,1),
        rgba(119,119,119,0.1)
    );
}

/* 全体を囲む立体的カード */
.login-wrapper {
    width: 580px;                  /* 内側の要素(500〜518px)が収まるように少し広めに設定 */
    margin: 0 auto;                /* 画面の中央に配置 */
    padding: 20px 10px;            /* 内側の余白（上下30px、左右20px） */
    margin-bottom: 40px;
    /* 3D枠線（左・上は明るく、右・下は暗くして彫り込み感を出す） */
    border-top: 1px solid #777777;
    border-left: 1px solid #777777;
    border-bottom: 1px solid #111111;
    border-right: 1px solid #111111;

    /* 影（外側のドロップシャドウで浮遊感） */
    box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.4);
}

/* BS2 */
.header-left {
    font-size: 2em;
    margin-right: 10px;  /* BS2 とセンターの間に余白 */
}

/* - Battery Smart Support */
.header-center {
    font-size: 1.6em;
    text-align: left;
    margin-right: auto;     /* 右側を押し出す */
    align-self: flex-end;   /* この要素だけ下寄せ */
}

/* NITTO KOGYO */
.header-right {
    font-size: 1em;
}

/*白いボックスの線*/
.login-box {
    width: 518px;                  /* header_table と同じ横幅 */
    margin: 20px auto;           /* 上下マージン + 横中央 */
    border: 1px solid rgba(255,255,255,0.2);   /* 半透明の白い枠線 */
}
/*白い線*/
.login-separator {
    border: none; /* まずブラウザのデフォルト線を消す */
    height: 1px; /* 太さを指定 */
    background-color: rgba(255, 255, 255, 0.4); /* 半透明の白い線 */
    width: 100%;
    margin: 0;               /* ← これを必ず指定 */
    box-sizing: border-box; /* 幅計算を内側基準に */
}

/* ユーザーIDでログイン*/
.login-text {
    display: block;            /* ブロックにして幅を指定可能に */
    width: calc(100% - 6px); /* 左右マージン分を引く */
    text-align: center;        /* テキストを中央 */
    margin: 3px auto;        /* 上下10px・左右は中央寄せ */
    background-color: #999999; /* 背景色グレー */
    padding: 5px 0;
}

.login-form {
    display: flex;
    flex-direction: column; /* 縦並び */
    align-items: center;    /* ★追加：子要素を中央揃え */
    width: 100%;            /* ★変更：200pxから100%に広げる */
    margin: 20px auto;      /* 横中央＋上下余白 */
    color: white;           /* ラベルの文字色を白に */
}
.login-form label:not(.error-text) {
    width: 200px;           /* ★追加：入力欄と同じ幅にする */
    text-align: left;       /* ★追加：文字は左寄せ */
    margin: 0;              /* 上下の余白をゼロに */
}
.login-form label {
    margin-top: 20px;
}

.login-form input {
    padding: 5px;
    width: 200px;
    box-sizing: border-box;
    margin: 0;          /* 上下の余白をゼロに */
    background: #ffffff; /* 元のグラデーション指定を消して、真っ白な背景に */
    border: none;        /* ブラウザのデフォルトの枠線を消す */
/* 内側（左と上方向）に影を落として、彫り込まれたような立体感を出す */
    box-shadow: inset 5px 0px 10px rgba(0, 0, 0, 0.5);
}

.login-form .btn {
    min-width: 120px;     /* 横幅を画像のように広げる */
    margin-top: 20px;     /* パスワード入力欄から少し下に離す */
    align-self: center;   /* フォームのど真ん中に配置 */
}


/*エラーメッセージ*/
.error-text {
    color: red;
    font-size: 0.9em;
    margin-top: 5px;
    display: block;
    text-align: center;
    width: 100%;
}
.login-form .error-text + .error-text {
    margin-top: -5px;
}
.login-form input.input-error-bg {
    background: rgba(255, 216, 255, 1);
}
/* ▼追加：クリック時のブラウザ標準の枠線（アウトライン）が下の文字に被るのを防ぐ */
.login-form input:focus {
    outline: none; /* デフォルトの枠線を強制的に消す */
    /* 代わりに自然な光彩(box-shadow)でフォーカスを表現します */
    box-shadow: inset 5px 0px 10px rgba(0, 0, 0, 0.5), 0 0 5px rgba(255, 255, 255, 0.4);
}
