@import url(dbozone-font-face.css);
@import url(dbchuanpimx-font-face.css);
@import url(material-icons-font-face.css);

html,
body {
  font-size: 24px;
  font-family: 'DBOzoneX';
  background-color: #f4f4f4;
  /* overflow: hidden;
  overflow-y: hidden;
  overflow-x: hidden; */
  margin: 0;
  padding: 0;
}

.sso-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}

input[disabled]:not([type='submit']) {
  opacity: 1;
}
input.invalid {
  border: 1px solid #db3b21 !important;
}
input.textbox-input {
  margin-bottom: 1rem;
}
input:focus {
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.05);
  outline: none;
}
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
/* Firefox */
input[type='number'] {
  -moz-appearance: textfield;
}
input[type='radio']:focus {
  box-shadow: none;
  outline: none;
}

::-webkit-input-placeholder {
  /* Chrome/Opera/Safari */
  color: #c8c8c8;
}
::-moz-placeholder {
  /* Firefox 19+ */
  color: #c8c8c8;
}
:-ms-input-placeholder {
  /* IE 10+ */
  color: #c8c8c8;
}
:-moz-placeholder {
  /* Firefox 18- */
  color: #c8c8c8;
}

.logo {
  max-width: 240px;
  margin: 0 auto;
  margin-top: 1rem;
  margin-bottom: 16px;
  display: block;
}
.card {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: 420px;
  width: 100%;
  padding: 24px 36px;
  margin: auto;
  transform: translate(-50%, -50%);
}
.title {
  font-weight: bold;
  color: rgba(254, 80, 0, 1);
  text-align: center;
  margin: 1rem 0;
}

.label-link {
  font-family: 'DBChuanPimX';
  color: rgb(27, 149, 224);
  text-decoration: none;
  cursor: pointer;
  font-size: 0.9rem;
}

.icon-circle {
  width: 2rem;
  height: 2rem;
  float: left;
  border-radius: 50%;
  overflow: hidden;
  margin: 8px 10px;
}

/* main-button */
.main-button {
  font-family: 'DBOzoneX';
  background-color: #f78a32;
  color: white;
  margin: 1rem 0;
  font-size: 26px;
}
.main-button:hover {
  color: white !important;
  background-color: #fe7232 !important;
}

/* secondary-button */
.secondary-button {
  font-family: 'DBOzoneX';
  background-color: white;
  border: 1px solid #f78a32;
  color: #f78a32;
  margin: 1rem 0;
}
.secondary-button:hover {
  color: white !important;
  background-color: #f78a32 !important;
}

/* login-panel */
.login-panel {
  margin: 1rem;
  text-align: center;
}

/* message */
.error-message {
  position: absolute;
  font-size: 0.8rem;
  margin-top: -1rem;
  color: #db3b21;
}
.error-message-panel,
.success-message-panel {
  /* min-height: 44px;
  height: auto;
  display: flex;
  justify-content: space-between; */
  position: relative;
  text-align: left;
  font-size: 0.8rem;
  padding: 0.325rem 1rem;
  margin-bottom: 1rem;
  /* display: -webkit-flex;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;   Safari ver 6.1+ */
}
.error-message-panel {
  font-family: DBChuanPimX;
  background-color: #f44336;
  color: #fff;
  display: flex;
}
.success-message-panel {
  background-color: #ddffdd;
  border: 0.1rem solid #4caf50;
  border-left: 0.25rem solid #4caf50;
  color: #000;
}
.error-message-panel .w3-button {
  line-height: 0.5rem;
  /* margin-right: -0.8rem; */
  position: absolute;
  right: 0;
  top: 0.25rem;
  background-color: transparent;
}
.error-message-panel .w3-button:hover {
  color: inherit !important;
  background-color: transparent !important;
}

.error-button {
  font-size: 26px;
  background-color: #f84d4d;
  color: white;
}
.error-button:hover {
  color: white !important;
  background-color: #fc6f7f !important;
}

.call-officer-btn {
  font-size: 26px;

  border: 1px solid #c8c8c8;
  color: rgba(102, 102, 102, 1);
}

.error-color {
  color: #f84d4d;
}

.error-background-color {
  background-color: #f84d4d;
}

.success-button {
  font-size: 26px;

  background-color: #28a745;
  color: white;
}

.success-color {
  color: #28a745;
}

.input {
  position: relative;
}

.input.focused .label {
  color: #f16d22;
}

.input.focused input {
  border: 1px solid #f16d22 !important;
}

.input.focused .message {
  color: #f16d22;
}

.input.required .label::after {
  content: '*';
  margin-left: 4px;
}

.input .message {
  font-family: DBChuanPimX;
  position: absolute;
  font-size: 0.8rem;
  margin-top: -1rem;
}

.input.invalid .message {
  color: #f84d4d;
}

.input.invalid .label {
  color: #f84d4d;
}

.input.invalid input {
  border: 1px solid #f84d4d !important;
}

.page-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 420px;

  min-height: 667px;
  height: 100%;
  min-height: 100vh;
  margin: 0 auto;
  /* height: 667px;
  max-height: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); */
}

.page-container > main {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 1rem;
  overflow-y: hidden;
}

.page-container > main > .content {
  flex-grow: 1;
}

.app-bar {
  background: linear-gradient(121.45deg, #ff836a 23.16%, #ee9941 94.49%);
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.05);
  width: 100%;
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.app-bar > .left-button {
  display: flex;
  align-items: center;
  position: absolute;
  top: 9px;
  left: 12px;
  cursor: pointer;
  color: #ffffff;
  font-size: 20px;
}

.app-bar > .title {
  color: #ffffff;
}

.font-dbchuanpimx {
  font-family: DBChuanPimX;
}

input {
  font-family: DBChuanPimX;
}

/* override w3.css */
.w3-modal {
  /* padding-bottom: 100px; */
  padding-top: 0 !important;
  padding: 24px !important;
}

/* iphone 12 pro max modal doesn't center */
/* @media only screen and (device-width: 428px) and (device-height: 926px) and (-webkit-device-pixel-ratio: 3) {
  .w3-modal {
    padding-top: 0 !important;
    padding: 40px !important;
  }
} */

/* iphone 11 pro max modal doesn't center */
/* @media only screen and (device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 3) {
  .w3-modal {
    padding-top: 0 !important;
    padding: 33px !important;
  }
} */

.w3-modal > .w3-modal-content {
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  width: 100%;
  max-width: 327px;
  max-height: 90%;
  margin: auto;
}

.w3-modal > .w3-modal-content > .w3-container {
  flex-grow: 1;
  overflow-y: auto;
  padding: 24px;
}

.w3-modal-content > .w3-container > i {
  padding-bottom: 11.67px;
  padding-top: 10.67px;
  font-size: 100px;
}

.w3-modal > .w3-modal-content > footer {
  /* padding: 24px; */
  padding: 10px 24px 32px 24px;
}

.w3-white {
  color: #212121 !important;
}

.w3-round-large {
  border-radius: 6px;
}

@media (min-width: 600px) {
  .page-container {
    min-height: 667px;
  }
  .sso-container::before,
  .sso-container::after {
    flex-grow: 1;
    content: '';
    display: block;
    height: 24px;
  }
  .sso-container::before {
    min-height: 30px;
  }
  .sso-container::after {
    min-height: 64px;
  }
}

/* @media (max-width: 768px) {
  .page-container {
    min-height: 100%;
  }
} */

@media screen and (max-width: 600px) {
  html,
  body {
    background-color: white;
  }
  .card {
    box-shadow: none;
    padding: 1rem;
    transform: none;
    top: 0;
    left: 0;
    height: 100%;
    max-width: none;
    display: flex;
    flex-direction: column;
    margin: 0 !important;
  }
}
