@font-face {
  font-family: 'Source Sans Pro';
  src: url('SourceSansPro-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

*, *::after, *::before {
  outline: none;
  max-width: 100%;
  box-sizing: border-box;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 20px;
}

body {
  margin: 0;
  background: #f9f5f5;
}

header img {
  width: 100%;
  height: auto;
  display: block;
}

.lg {
  display: block;
}
.md, .sm, .xs {
  display: none;
}

@media (max-width: 1000px) {
  .lg { display: none; }
  .md { display: block; }
}

@media (max-width: 700px) {
  .md { display: none; }
  .sm { display: block; }
}

@media (max-width: 500px) {
  .sm { display: none; }
  .xs { display: block; }
}

main {
  text-align: center;
}

.container {
  display: inline-flex;
  width: 1400px;
  padding: 5px;
  gap: 10px;
}

.left {
  background: white;
  width: 550px;
}

.right {
  flex: 1;
}

.form {
  text-align: left;
}

.holder {
  padding: 20px;
}

.gray {
  background: #f1f1f1;
  font-size: 0.8rem;
}

.welcome {
  position: relative;
}

.welcome img {
  width: 169px;
}

.keypad-toggle {
  position: absolute;
  top: 10px;
  right: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.keypad-toggle img {
  width: 16px;
  height: auto;
}

.virtual-keypad-label {
  color: #f05a7d !important;
  font-size: 14px;
}

@media (max-width: 1024px) {
  .keypad-toggle {
    display: none !important;
  }
}

label {
  font-size: 0.80rem;
  font-weight: bold;
}

span {
  font-size: 0.8rem;
  color: gray;
  white-space: pre;
}

input {
  width: 100%;
  padding: 10px;
  border: 1px solid #c9c9c9;
  border-radius: 4px;
}

input:focus {
  background-color: #fff;
  border-color: #af144b;
  outline: 0;
}

input:hover,
input:focus {
  box-shadow: 0 4px 8px #00000029;
}

input:hover {
  border-color: #cac7c7;
}

input.disabled {
  background-color: #eeeded;
}

input.disabled:hover,
input.disabled:focus {
  box-shadow: none;
}

input.error {
  border: 1px solid #b41212;
}

button {
  width: 100%;
  margin: 6px 0;
  background: #fa551e;
  border-radius: 5px;
  font-size: 0.78rem;
  font-weight: bold;
  border: 1px solid #fa551e;
  padding: 13px;
  color: white;
  cursor: pointer !important;
}

button.forgot {
  background: white;
  color: #fa551e;
}

.mobile {
  display: none;
}

.pc {
  display: block;
}

@media (max-width: 1000px) {
  .pc { display: none; }
  .mobile { display: block; }
}

@media (max-width: 850px) {
  .left { width: 100%; }
  .right { display: none; }
}

/* Virtual Keyboard */
.keyboard-container {
  text-align: center;
  background-color: #eee;
  position: fixed;
  height: 230px;
  width: 100%;
  left: 0;
  bottom: -240px;
  padding: 20px 0;
  transition: all 0.25s ease-in-out;
  z-index: 10000;
}

.keyboard-container.active {
  bottom: 0;
}

.keyboard-grid {
  position: absolute;
  left: 60px;
  top: 20px;
  display: grid;
  grid-template-columns: repeat(3, 30px);
  gap: 10px;
  justify-content: start;
}

.keyboard-container button {
  padding: 1px;
  font-size: 18px;
  font-weight: 400;
  cursor: pointer;
  border: 1px solid transparent;
  background-color: #fff;
  border-radius: 4px;
  color: #333;
  width: 30px;
  height: 30px;
  margin: 1px;
  vertical-align: top;
}

.keyboard-container .special {
  background-color: #ccc;
  color: #333;
  grid-column: span 2;
  width: 70px;
}

/* Footer */
footer {
  padding: 50px 0;
  font-size: 0.9rem;
  text-align: center;
}

footer .copyright {
  font-size: 0.8rem;
}

footer .links {
  margin-top: 6px;
}

footer .links span {
  margin: 5px;
  display: inline-block;
  color: #ff4364;
}

/* Error Styling */
div.error {
  background: #fef7f7;
  display: flex;
  gap: 15px;
  padding: 10px;
  border: 1px solid red;
  color: red;
  border-radius: 6px;
  margin: 20px 0;
}

.error strong {
  font-size: 0.8rem;
}

.error p {
  margin: 0;
  margin-top: 3px;
  font-size: 0.9rem;
  font-family: calibri, sans-serif;
}

.error img {
  width: 25px;
}

/* Loader (shared by both pages) */
.loader {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.8);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.loader.active {
  display: flex;
}

.loader svg {
  animation: spin 1.2s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Misc */
.icon {
  width: 30px;
  padding: 3px;
}

.txt {
  flex: 1;
}

.title {
  font-size: 1rem;
  font-weight: bold;
}

.text {
  margin: 10px 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.style3 {
  font-size: large;
  color: #000000;
}