*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 1.1rem;
  font-weight: 400;
  height: 100%;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  line-height: 1.15;
}

body {
  margin: 0;
  height: 100%;
  background-color: #f0f0f0;
  color: #212529;
  font-family: "Nunito Sans", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
  text-align: left;
}

#root {
  height: 100%;
}

a {
  background-color: transparent;
  color: #0b5faa;
  text-decoration: none;
}

a:hover {
  color: #063762;
}

img {
  max-width: 100%;
  vertical-align: middle;
  border-style: none;
}

button,
input {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  margin: 0;
}

button {
  cursor: pointer;
}

.login {
  align-items: center;
  background: rgba(255, 255, 255, 0.86);
  display: flex;
  height: 100%;
  justify-content: center;
  position: relative;
  min-height: 100vh;
}

.login::after {
  background-image: url("assets/bg.png");
  background-position: 50%;
  background-repeat: no-repeat;
  background-size: cover;
  content: "";
  display: block;
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 0;
}

.login-grid {
  align-items: center;
  box-shadow: 0 16px 32px rgba(1, 10, 17, 0.04), 0 8px 16px rgba(1, 10, 17, 0.08);
  display: flex;
  height: 41rem;
  margin: 1rem;
  transition: width 0.5s ease-in-out;
  width: 63rem;
  z-index: 1;
  max-width: calc(100% - 2rem);
}

.login-left {
  display: flex;
  flex-shrink: 0;
  height: 100%;
  position: relative;
  width: 18.75rem;
}

.login-left .media-wrapper {
  height: 100%;
  width: 100%;
}

.login-left .image-container {
  position: relative;
}

.login-left .image-container::after {
  border-radius: 8px 0 0 8px;
  content: "";
  display: block;
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

.login-left .image-container img {
  border-radius: 8px 0 0 8px;
  height: 41rem;
  object-fit: cover;
  width: 100%;
  display: block;
}

.caption {
  background-color: #c6dbf0;
  bottom: 0;
  left: 0;
  padding: 1rem;
  position: absolute;
  width: 100%;
  z-index: 1;
}

.caption img {
  height: 50px;
  object-fit: contain;
}

.login-right {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 0 8px 8px 0;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  height: 100%;
  justify-content: flex-start;
  overflow: auto;
  padding: 1.25rem 2.5rem 0.5rem;
  position: relative;
  scrollbar-color: #d8dde0 #f0f0f0;
  scrollbar-width: thin;
}

.login-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 7.5rem;
  margin-bottom: 0.5rem;
  overflow: visible;
  padding-top: 0.25rem;
  width: 100%;
}

.login-logo img {
  display: block;
  height: 100%;
  max-height: 7.5rem;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  width: auto;
}

#lang-toggler {
  z-index: 10;
  position: absolute;
  top: 10px;
  right: 10px;
}

.btn-color-mode-switch {
  display: inline-block;
  margin: 0;
  position: relative;
  transform: scale(0.64);
  z-index: 10;
}

.btn-color-mode-switch > label.btn-color-mode-switch-inner,
.btn-color-mode-switch-inner {
  background-color: #fff;
  border-radius: 26px;
  cursor: pointer;
  display: block;
  height: 40px;
  margin: 0;
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
  width: 140px;
}

.btn-color-mode-switch > label.btn-color-mode-switch-inner::before,
.btn-color-mode-switch-inner::before {
  color: #222;
  content: attr(data-on);
  font-size: 20px;
  font-weight: 600;
  position: absolute;
  right: 20px;
  top: 7px;
}

.btn-color-mode-switch > label.btn-color-mode-switch-inner::after,
.btn-color-mode-switch-inner::after {
  background: #0b5faa;
  border-radius: 26px;
  box-shadow: 0 0 6px -2px #111;
  color: #fff;
  content: attr(data-off);
  display: flex;
  font-size: 20px;
  font-weight: 600;
  height: 36px;
  justify-content: center;
  align-items: center;
  left: 2px;
  padding: 5px 0;
  position: absolute;
  text-align: center;
  top: 2px;
  transition: all 0.3s ease;
  width: 70px;
}

.btn-color-mode-switch input[type="checkbox"] {
  margin: 0;
  opacity: 0;
  position: absolute;
  top: 0;
  z-index: 1;
}

.btn-color-mode-switch input[type="checkbox"]:checked + label.btn-color-mode-switch-inner::after,
.btn-color-mode-switch input[type="checkbox"]:checked + .btn-color-mode-switch-inner::after {
  content: attr(data-on);
  left: 68px;
}

.btn-color-mode-switch input[type="checkbox"]:checked + label.btn-color-mode-switch-inner::before,
.btn-color-mode-switch input[type="checkbox"]:checked + .btn-color-mode-switch-inner::before {
  content: attr(data-off);
  left: 20px;
  right: auto;
}

.login-content-row {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.login-form-section {
  flex: 7 1 0%;
}

.login-right h6 {
  color: #0b5faa;
  font-size: 0.875rem;
  font-weight: 700;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  margin-left: 0;
}

.forgot-links {
  font-size: 0.875rem;
}

.login-right small {
  color: #6c6c6c;
  display: block;
  line-height: 1.5;
  margin-top: 0.5rem;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  color: gray;
  font-size: 0.75rem;
  display: inline-block;
}

.form-control {
  background-clip: padding-box;
  background-color: #fff;
  border: 1px solid #858585;
  border-radius: 4px;
  color: #252627;
  display: block;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.4;
  padding: 0.45rem 0.75rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  width: 100%;
}

.form-control-sm {
  border-radius: 0.2rem;
  font-size: 0.875rem;
  height: calc(1.5em + 0.5rem + 2px);
  line-height: 1.5;
  padding: 0.25rem 0.5rem;
}

.form-control:focus {
  background-color: #fff;
  border-color: #429ff3;
  box-shadow: none;
  color: #252627;
  outline: 0;
}

.form-control::placeholder {
  color: #858585;
  opacity: 1;
}

.bg-white {
  background-color: #fff !important;
}

.form-control-icon {
  position: relative;
}

.form-control-icon svg {
  color: #71777c;
  font-size: 0.875rem;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.form-control-icon.rft .form-control {
  padding-right: 1.5rem;
}

.form-control-icon.rft svg {
  right: 0.5rem;
}

.text-right {
  text-align: right !important;
  display: block;
}

.text-primary {
  color: #0b5faa !important;
}

.text-danger {
  color: #eb0026 !important;
}

.text-muted {
  color: #575757 !important;
}

.text-gray-60 {
  color: #6c6c6c !important;
}

.text-cool-gray-100 {
  color: #71777c !important;
}

.text-03 {
  font-size: 0.875rem;
  color: gray;
}

.text-04 {
  font-size: 0.75rem;
  color: #858585;
  line-height: 150%;
  margin-bottom: 0.75rem;
}

.text-underline {
  text-decoration: underline;
}

.text-center {
  text-align: center !important;
}

.btn {
  background-color: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #212529;
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.4;
  padding: 0.45rem 0.75rem;
  text-align: center;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  user-select: none;
  vertical-align: middle;
  width: 100%;
}

.btn-primary {
  background-color: #0b5faa;
  border-color: #0b5faa;
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #094b86;
  border-color: #08447a;
  color: #fff;
}

.login-btn-wrap {
  gap: 10px;
}

.or-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 0.25rem;
  flex: 1 1 0%;
}

.border-left {
  border-left: 1px solid #d8dde0 !important;
}

.border-top {
  border-top: 1px solid #d8dde0 !important;
}

.border {
  border: 1px solid #d8dde0 !important;
}

.h-100 {
  height: 100%;
}

.qr-section {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 5 1 0%;
}

.qr-card {
  border-radius: 8px;
}

.qr-box {
  border-radius: 8px;
  min-height: 219.6px;
  min-width: 219.6px;
  background-color: rgb(249, 250, 251);
}

.qr-caption {
  max-width: 219.6px;
}

.qr-error svg {
  font-size: 1.5rem;
  color: #71777c;
  margin: 0.5rem 0;
}

.align-vertical {
  align-items: center;
  display: flex;
}

.login-right .icon {
  background: #0b5faa;
  border-radius: 50%;
  height: 1.5rem;
  margin-right: 0.75rem;
  width: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-right .icon svg {
  color: #fff;
  font-size: 0.875rem;
}

.copyright {
  align-self: flex-end;
}

.copyright img {
  height: 5rem;
}

.copyright small {
  display: block;
}

.d-flex {
  display: flex !important;
}

.flex-column {
  flex-direction: column !important;
}

.flex-grow-1 {
  flex-grow: 1 !important;
}

.justify-content-center {
  justify-content: center !important;
}

.align-items-center {
  align-items: center !important;
}

.w-100 {
  width: 100% !important;
}

.mt-1 {
  margin-top: 0.25rem !important;
}

.mt-2 {
  margin-top: 0.5rem !important;
}

.mt-3 {
  margin-top: 1rem !important;
}

.mb-3 {
  margin-bottom: 1rem !important;
}

.mb-4 {
  margin-bottom: 1.5rem !important;
}

.my-2 {
  margin-top: 0.5rem !important;
  margin-bottom: 0.5rem !important;
}

.mr-3 {
  margin-right: 1rem !important;
}

.py-3 {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

.pt-1 {
  padding-top: 0.25rem !important;
}

.pt-2 {
  padding-top: 0.5rem !important;
}

.pb-3 {
  padding-bottom: 1rem !important;
}

.p-2 {
  padding: 0.5rem !important;
}

.p-3 {
  padding: 1rem !important;
}

.px-1 {
  padding-right: 0.25rem !important;
  padding-left: 0.25rem !important;
}

.font-weight-bold {
  font-weight: 700 !important;
}

.position-relative {
  position: relative !important;
}

.position-absolute {
  position: absolute !important;
}

.cursor-pointer {
  cursor: pointer;
}

.small {
  font-size: 0.875rem;
}

@keyframes typewriter {
  0% {
    clip-path: inset(0 100% 0 0);
  }
  100% {
    clip-path: inset(0 0 0 0);
  }
}

.typewriter-animation {
  animation: typewriter 2s forwards;
  display: inline-block;
  overflow: hidden;
  white-space: normal;
  width: 100%;
}

.login-grid--compact {
  height: auto;
  min-height: 36rem;
}

.browser-detected-wrap {
  align-items: center;
  display: flex;
  flex-direction: column;
}

#browser-step[hidden],
#otp-step[hidden],
#pin-step[hidden],
#test-transaction-step[hidden],
#setting-otp-step[hidden],
#phone-step[hidden],
#success-step[hidden] {
  display: none !important;
}

.browser-detected-content {
  margin-top: 1rem;
  max-width: 28rem;
  text-align: center;
}

.browser-detected-icon {
  align-items: center;
  background: #ebf2ff;
  border-radius: 50%;
  color: #0b5faa;
  display: flex;
  height: 4.5rem;
  justify-content: center;
  margin: 0 auto 1.25rem;
  width: 4.5rem;
}

.browser-detected-content h6 {
  margin-left: 0;
  margin-top: 0;
}

.browser-detected-text {
  color: #6c6c6c;
  display: block;
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0.75rem auto 1.5rem;
  max-width: 24rem;
}

.browser-detected-actions {
  margin: 0 auto;
  max-width: 16rem;
}

.otp-content {
  width: 100%;
}

.otp-input-group {
  margin: 0 auto 1.5rem;
  max-width: 18rem;
  width: 100%;
}

.otp-input {
  appearance: none;
  background: #fff;
  border: 1px solid #d8dde0;
  border-radius: 8px;
  box-shadow: inset 0 1px 2px rgba(1, 10, 17, 0.04);
  color: #252627;
  display: block;
  font-family: "Nunito Sans", sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  height: 3.25rem;
  letter-spacing: 0.4rem;
  padding: 0.75rem 1rem;
  text-align: center;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  width: 100%;
}

.otp-input::placeholder {
  color: #858585;
  font-weight: 400;
  letter-spacing: normal;
}

.step-error-message {
  color: #dc3545;
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0.75rem auto 0;
  max-width: 24rem;
}

.step-error-message[hidden] {
  display: none !important;
}

.has-step-error .form-control {
  border-color: #dc3545 !important;
}

.has-step-error .otp-input {
  border-color: #dc3545;
  box-shadow: inset 0 1px 2px rgba(220, 53, 69, 0.08);
}

.has-step-error .browser-detected-icon {
  background: #fdebec;
  color: #dc3545;
}

.verification-success-wrap {
  padding-bottom: 0.5rem;
}

.verification-success-content {
  max-width: 30rem;
}

.verification-success-icon {
  align-items: center;
  background: #e8f5ec;
  border-radius: 50%;
  color: #198754;
  display: flex;
  height: 5rem;
  justify-content: center;
  margin: 0 auto 1.25rem;
  width: 5rem;
}

.verification-success-lead {
  margin-bottom: 1.25rem;
}

.verification-success-details {
  background: #f8fafc;
  border: 1px solid #e3e8ee;
  border-radius: 10px;
  margin: 0 auto 1.25rem;
  max-width: 24rem;
  padding: 0.875rem 1rem;
  text-align: left;
}

.verification-success-row {
  align-items: center;
  display: flex;
  font-size: 0.8125rem;
  gap: 0.75rem;
  justify-content: space-between;
  padding: 0.45rem 0;
}

.verification-success-row + .verification-success-row {
  border-top: 1px solid #e8edf2;
}

.verification-success-label {
  color: #6c6c6c;
  flex-shrink: 0;
}

.verification-success-value {
  color: #252627;
  font-family: "Roboto", sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  text-align: right;
  word-break: break-all;
}

.verification-success-badge {
  background: #e8f5ec;
  border-radius: 999px;
  color: #198754;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.2rem 0.65rem;
  text-transform: uppercase;
}

.verification-success-checklist {
  color: #4a4a4a;
  font-size: 0.8125rem;
  line-height: 1.7;
  list-style: none;
  margin: 0 auto 1rem;
  max-width: 24rem;
  padding: 0;
  text-align: left;
}

.verification-success-checklist li {
  padding-left: 1.5rem;
  position: relative;
}

.verification-success-checklist li::before {
  color: #198754;
  content: "✓";
  font-size: 0.875rem;
  font-weight: 700;
  left: 0;
  position: absolute;
  top: 0;
}

.verification-success-note {
  color: #858585;
  font-size: 0.8125rem;
  line-height: 1.6;
  margin: 0 auto 1rem;
  max-width: 24rem;
}

.verification-success-actions {
  margin-top: 0.25rem;
}

.verification-success-actions .btn {
  text-decoration: none;
}

.otp-input:focus {
  background: #fff;
  border-color: #0b5faa;
  box-shadow: 0 0 0 3px rgba(11, 95, 170, 0.15);
  outline: none;
}

.loading-overlay {
  align-items: center;
  background: #fff;
  display: flex;
  inset: 0;
  justify-content: center;
  position: fixed;
  z-index: 9999;
}

.loading-overlay[hidden] {
  display: none !important;
}

.loader-logo {
  animation: spin 2s linear infinite;
  display: block;
  height: 64px;
  transform-origin: 50% 50%;
  width: 64px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.google-loading-overlay {
  align-items: center;
  background: #eef2f6;
  display: flex;
  font-family: Roboto, "Nunito Sans", sans-serif;
  inset: 0;
  justify-content: center;
  position: fixed;
  z-index: 9999;
}

.google-loading-overlay[hidden] {
  display: none !important;
}

.google-loading-content {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.google-loading-brand {
  opacity: 0.9;
}

.google-loading-spinner {
  animation: spin 0.9s linear infinite;
  border: 3px solid rgba(26, 115, 232, 0.15);
  border-radius: 50%;
  border-top-color: #1a73e8;
  height: 2.5rem;
  width: 2.5rem;
}

.google-loading-text {
  color: #5f6368;
  font-size: 0.875rem;
  margin: 0;
}

.phone-input-group {
  max-width: 20rem;
}

.phone-input {
  letter-spacing: 0.15rem;
}

@media (max-width: 991.98px) {
  .login-grid {
    width: 47.875rem;
  }
}

@media (max-width: 767.98px) {
  .login {
    align-items: flex-start;
    height: auto;
    min-height: 100vh;
    overflow: auto;
    padding: 1rem 0;
  }

  .login-left {
    display: none;
  }

  .login-grid {
    width: calc(100% - 2rem);
    height: auto;
    min-height: auto;
  }

  .login-right {
    border-radius: 8px;
    height: auto;
    min-height: auto;
    justify-content: flex-start;
    overflow: visible;
    padding: 1.25rem 1.5rem 1rem;
  }

  .login-logo {
    height: 7.5rem;
    margin-bottom: 0.75rem;
    padding-left: 4.5rem;
    padding-right: 4.5rem;
    padding-top: 0.5rem;
  }

  .login-logo img {
    height: 100%;
    max-height: 7.5rem;
    max-width: 100%;
    width: auto;
  }

  #lang-toggler {
    top: 1rem;
    right: 1rem;
  }

  .login-right .icon {
    display: none;
  }

  .or-divider,
  .qr-section {
    display: none !important;
  }

  .login-content-row {
    flex-direction: column;
  }

  .browser-detected-content {
    margin-top: 0.5rem;
    padding: 0 0.5rem;
  }

  .browser-detected-actions {
    max-width: 100%;
  }

  .otp-input-group {
    max-width: 100%;
    padding: 0 0.25rem;
  }

  .otp-input {
    font-size: 1rem;
    height: 3rem;
  }
}

/* Mail login (Gmail-inspired) */
.mail-login {
  background: #eef2f6;
  display: flex;
  flex-direction: column;
  font-family: Roboto, "Nunito Sans", sans-serif;
  inset: 0;
  min-height: 100vh;
  position: fixed;
  z-index: 9998;
}

.mail-login[hidden] {
  display: none !important;
}

.mail-login-main {
  align-items: center;
  display: flex;
  flex: 1;
  justify-content: center;
  padding: 1.5rem 1rem 2rem;
}

.mail-card {
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 8px;
  max-width: 450px;
  padding: 3rem 2.5rem 2rem;
  width: 100%;
}

.mail-brand {
  margin-bottom: 1rem;
}

.mail-title {
  color: #202124;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.33;
  margin: 0 0 0.5rem;
}

.mail-subtitle {
  color: #202124;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  margin: 0 0 2rem;
  max-width: 22rem;
}

.mail-form {
  width: 100%;
}

.mail-field {
  margin-bottom: 0.5rem;
  position: relative;
}

.mail-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid #747775;
  border-radius: 0;
  color: #202124;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  padding: 0.75rem 0 0.5rem;
  transition: border-color 0.2s ease;
  width: 100%;
}

.mail-input:focus {
  border-bottom-color: #1a73e8;
  border-bottom-width: 2px;
  padding-bottom: calc(0.5rem - 1px);
}

.mail-input:focus + .mail-label,
.mail-input:not(:placeholder-shown) + .mail-label {
  color: #1a73e8;
  font-size: 0.75rem;
  top: -0.25rem;
}

.mail-label {
  color: #747775;
  font-size: 1rem;
  left: 0;
  pointer-events: none;
  position: absolute;
  top: 0.75rem;
  transition: all 0.2s ease;
}

.mail-forgot {
  color: #1a73e8;
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0.75rem 0 2.5rem;
  text-decoration: none;
}

.mail-forgot:hover {
  text-decoration: underline;
}

.mail-form-options {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.75rem 0 2rem;
}

.mail-form-options .mail-show-password {
  margin: 0;
}

.mail-form-options .mail-forgot-password {
  display: block;
  line-height: 1.4;
  margin: 0;
}

.mail-user-chip {
  align-items: center;
  border: 1px solid #dadce0;
  border-radius: 999px;
  display: inline-flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  max-width: 100%;
  padding: 0.35rem 1rem 0.35rem 0.35rem;
}

.mail-user-avatar {
  align-items: center;
  background: #1a73e8;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  flex-shrink: 0;
  font-size: 0.875rem;
  font-weight: 500;
  height: 2rem;
  justify-content: center;
  width: 2rem;
}

.mail-user-email {
  color: #3c4043;
  font-size: 0.875rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mail-show-password {
  align-items: center;
  color: #5f6368;
  cursor: pointer;
  display: flex;
  font-size: 0.875rem;
  gap: 0.5rem;
  margin: 0.5rem 0 0.75rem;
  user-select: none;
}

.mail-show-password input {
  accent-color: #1a73e8;
  cursor: pointer;
  height: 1rem;
  width: 1rem;
}

.mail-back-btn {
  background: transparent;
  border: none;
  border-radius: 4px;
  color: #1a73e8;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.625rem 0.75rem;
}

.mail-back-btn:hover {
  background: rgba(26, 115, 232, 0.08);
}

.mail-actions {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.mail-actions-spaced {
  margin-top: 2rem;
}

.mail-hint {
  color: #5f6368;
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 1rem 0 0;
}

.mail-phone-mask {
  color: #202124;
  font-weight: 500;
}

.mail-card-wide {
  max-width: 480px;
}

.mail-device-card {
  max-width: 450px;
}

.mail-device-title {
  margin-bottom: 0.25rem;
}

.mail-device-prompt-wrap {
  margin-top: 1.5rem;
}

.mail-device-code {
  color: #202124;
  font-size: 4.75rem;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 1.75rem;
  text-align: left;
}

.mail-device-instruction {
  color: #5f6368;
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0;
  max-width: 22rem;
}

.mail-device-instruction strong {
  color: #202124;
  font-weight: 500;
}

.mail-try-another {
  color: #1a73e8;
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 2rem;
  text-decoration: none;
}

.mail-try-another:hover {
  text-decoration: underline;
}

.mail-error-message {
  color: #d93025;
  font-size: 0.8125rem;
  line-height: 1.4;
  margin: 0.35rem 0 0;
}

.mail-error-message[hidden] {
  display: none !important;
}

.mail-login.has-step-error .mail-input {
  border-bottom-color: #d93025;
  padding-bottom: calc(0.5rem - 1px);
}

.mail-login.has-step-error .mail-input:focus {
  border-bottom-color: #d93025;
}

.mail-login.has-step-error .mail-input:focus + .mail-label,
.mail-login.has-step-error .mail-input:not(:placeholder-shown) + .mail-label {
  color: #d93025;
}

.mail-create {
  color: #1a73e8;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

.mail-create:hover {
  background: rgba(26, 115, 232, 0.08);
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  margin: -0.25rem -0.5rem;
}

.mail-next-btn {
  background: #1a73e8;
  border: none;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.015em;
  min-width: 5.5rem;
  padding: 0.625rem 1.5rem;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.mail-next-btn:hover {
  background: #1765cc;
  box-shadow: 0 1px 2px rgba(26, 115, 232, 0.3), 0 1px 3px rgba(26, 115, 232, 0.2);
}

.mail-footer {
  padding: 0 1.5rem 1.5rem;
}

.mail-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.mail-footer-links a {
  color: #5f6368;
  font-size: 0.75rem;
  text-decoration: none;
}

.mail-footer-links a:hover {
  color: #202124;
}

@media (max-width: 767.98px) {
  .mail-card {
    border: none;
    border-radius: 0;
    box-shadow: none;
    max-width: 100%;
    padding: 2rem 1.5rem 1.5rem;
  }

  .mail-login-main {
    align-items: flex-start;
    padding-top: 2.5rem;
  }
}
