/* Reset CSS */
html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
abbr, address, cite, code, del, dfn, em,
img, ins, kbd, q, samp, small, strong, sub,
sup, var, b, i, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend, table,
caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, figcaption,
figure, footer, header, hgroup, menu, nav,
section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  vertical-align: baseline;
  background: transparent;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

body {
  line-height: 1;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #fff;
  color: #000;
}

ul, ol {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

/* General Layout */
html, body {
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  background-color: #f0f4f8;
  font-size: 14px;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  color: #333;
  width: 100%;
}

/* Login Layout */
.login {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  height: 100dvh;
  width: 100%;
  box-sizing: border-box;
}

.login-box {
  text-align: center;
  width: 70%;
}

.lock-icon {
  font-family: 'Material Symbols Sharp';
  font-variation-settings: 'wght' 200, 'GRAD' -25;
  font-weight: 200;
  font-size: 60px !important;
  color: #4f8bc2;
  display: block;
  margin-bottom: 20px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.input-group input {
  width: 100%;
  padding: 10px 0;
  font-size: 16px;
  background-color: #f0f4f8;
  border: none;
  border-bottom: 2px solid #4f8bc2;
  color: #333;
  outline: none;
  text-align: left;
}

.input-group input::placeholder {
  color: #4f8bc2;
  text-align: left;
}

input:-webkit-autofill {
  background-color: #f0f4f8 !important;
  transition: background-color 50000s ease-in-out 0s;
  -webkit-text-fill-color: #333 !important;
  box-shadow: 0 0 0px 1000px #f0f4f8 inset;
}

.error-message {
  color: #d94f4f;
  font-size: 14px;
  margin-top: -10px;
  margin-bottom: 10px;
  text-align: left;
}

/* Header Icon Area */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background-color: #f0f4f8;
  box-shadow: none;
}

nav ul {
  display: flex;
  gap: 15px;
}

nav button {
  background:none;
  border:none;
  padding:0;
}

nav .material-symbols-sharp {
  font-variation-settings: 'wght' 400;
  font-size: 28px;
  color: #4f8bc2;
  cursor: pointer;
}

/* Logout Dialog Overlay */
.logout-dialog-overlay {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
}

.logout-dialog-box {
  background: #fff;
  border-radius: 8px;
  padding: 20px 30px;
  text-align: center;
  max-width: 300px;
  width: 90%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.logout-dialog-box p {
  margin-bottom: 20px;
  font-size: 16px;
  color: #333;
}

.logout-dialog-buttons {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.logout-dialog-buttons button {
  flex: 1;
  padding: 8px 0;
  border: none;
  border-radius: 4px;
  background-color: #4f8bc2;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}

.logout-dialog-buttons button:hover {
  opacity: 0.85;
}

.logout-dialog-overlay.active {
  display: flex;
}