.user_info {
  margin: var(--margin);
  display: grid;
  gap: 6px;
}

.user_info label {
  margin-top: 12px;
}

.user_info input {
  width: 100%;
  height: var(--input-height);
  border: 1px solid gray;
  border-radius: 6px;
  background-color: #f5f5f5;
  padding: 0 12px;
  font-size: 16px;
}

.button_area {
  display: flex;
  margin: 24px 12px 12px;
  justify-content: space-around;
}

.change {
  margin: var(--margin);
  color: var(--attention-color);
  font-weight: bold;
  text-decoration: underline;
}

#login_id {
  user-select: none;
  touch-action: none;
  white-space: nowrap;
}
#login_id:focus {
  outline: none;
}
.voltage-button:focus {
  outline: none;
}

.dialog {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 1;
    width: 60%;
}

.dialog p {
    font-weight: bold;
}

.dialog input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
}

.dialog button {
    padding: 10px 20px;
    margin-left: 10px;
    cursor: pointer;
    float: left; 
    font-size: 16px;
}

.dialog button:last-child {
    float: right; 
    margin-right: 10px;
}

.change a {
    cursor: pointer;
    color: #fff;
    -webkit-text-stroke: 1px #000;
}

.tip {
	margin-top: 0px !important;
    font-size: 12px !important;	
    font-weight: 400;
}

#backgroundImg {
	background-image: url('/img/login.webp');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	height: 100%;
}

.stroke{
	color: #fff;
	-webkit-text-stroke: 1px #000;
	font-weight: bold;
	font-size: 1.2em;
}

text {
  font-size: 1.7em;
  font-weight: bold;
  stroke-width: 2px;
  stroke: black;
  fill: #fff;
}

svg{
	margin-top: 20px;
}

.centered {
	width: 85%;
    padding: 20px;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.centered > .form-group {
    margin-bottom: 10px;
}
.amazonPay_img{
	width: 100%;
    height: 100%;
}

/* two-factor dialog beautify */
.two-factor-dialog.ui-dialog {
  border: none;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
}

/* タイトルバー非表示 */
.two-factor-dialog .ui-dialog-titlebar {
  display: none;
}

/* コンテンツエリア */
.two-factor-dialog .ui-dialog-content {
  padding: 28px 24px 20px 24px;
}

/* カスタムタイトル */
.two-factor-dialog .ui-dialog-content::before {
  content: '認証コードを入力';
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 20px;
  text-align: center;
}

.two-factor-dialog .ui-dialog-content .form-group {
  margin-bottom: 16px;
}

.two-factor-dialog .ui-dialog-content .form-group label.stroke {
  display: block;
  margin-bottom: 8px;
  -webkit-text-stroke: 0px;
  color: #4b5563;
  font-weight: 500;
  font-size: 14px;
}

/* ボタンエリア */
.two-factor-dialog .ui-dialog-buttonpane {
  border: none;
  padding: 0 24px 24px 24px;
  background: transparent;
}

/* 認証コード入力欄 */
.two-factor-dialog #twoFactorCode {
  width: 100%;
  height: 50px;
  border-radius: 12px;
  border: 2px solid #e5e7eb;
  background: #fff;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 6px;
  text-align: center;
  transition: border-color 0.2s;
}

.two-factor-dialog #twoFactorCode:focus {
  outline: none;
  border-color: #3b82f6;
}


.two-factor-dialog .form-group input[type="checkbox"] {
  margin: 0;
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #3b82f6;
}

.two-factor-dialog .form-group label[for="rememberDevice"] {
  margin: 0 !important;
  cursor: pointer;
  -webkit-text-stroke: 0px !important;
  color: #6b7280 !important;
  font-weight: 400 !important;
  font-size: 13px !important;
  user-select: none;
}

/* 認証コード再送信リンク */
.two-factor-dialog #resendCodeLink {
  color: #6b7280;
  text-decoration: none;
  cursor: pointer;
  font-size: 13px;
  transition: color 0.2s;
  user-select: none;
}

.two-factor-dialog #resendCodeLink:hover {
  color: #3b82f6;
  text-decoration: underline;
}

.two-factor-dialog #countdownText {
  font-size: 12px;
  color: #9ca3af;
  font-variant-numeric: tabular-nums;
}

/* ボタンスタイル */
.two-factor-dialog .ui-dialog-buttonset {
  display: flex;
  gap: 12px;
  width: 100%;
}

.two-factor-dialog .ui-dialog-buttonset button {
  flex: 1;
  height: 44px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.two-factor-dialog .ui-dialog-buttonset button#dialogOkBtn {
  background: #3b82f6;
  color: #fff;
}

.two-factor-dialog .ui-dialog-buttonset button#dialogOkBtn:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.two-factor-dialog .ui-dialog-buttonset button#dialogCancelBtn {
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}

.two-factor-dialog .ui-dialog-buttonset button#dialogCancelBtn:hover {
  background: #e5e7eb;
  color: #374151;
}

/* エラーメッセージ */
.two-factor-dialog #twoFactorErrMsg {
  color: #ef4444;
  font-size: 13px;
  margin-top: 12px;
  min-height: 18px;
  text-align: center;
}