*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  color: #1e3a5f;
  background: #f4f7f9;
  min-height: 100vh;
}

/* Header */
.header {
  background: #003366;
  color: #fff;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 480px;
  margin: 0 auto;
  padding: 12px 16px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  background: #003366;
  line-height: 0;
}

.logo-img {
  height: 28px;
  width: auto;
  display: block;
  border-radius: 2px;
}

.header-title {
  flex: 1;
  text-align: center;
  font-size: 15px;
  font-weight: normal;
  letter-spacing: 0.01em;
}

.lang-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 4px;
  flex-shrink: 0;
}

.lang-btn:hover {
  opacity: 0.85;
}

/* Main content */
.main {
  max-width: 480px;
  margin: 0 auto;
  padding: 28px 20px 40px;
}

.page-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  font-weight: normal;
  color: #1e3a5f;
  margin-bottom: 24px;
}

/* Tab grid */
.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 28px;
}

.tab {
  background: #fff;
  border: 1px solid #1e3a5f;
  color: #1e3a5f;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.3;
  padding: 14px 10px;
  cursor: pointer;
  text-align: center;
  border-radius: 2px;
  transition: background 0.15s, color 0.15s;
}

.tab:hover:not(.tab--active) {
  background: #eef2f6;
}

.tab--active {
  background: #1e3a5f;
  color: #fff;
  border-color: #1e3a5f;
}

/* Form */
.login-form {
  display: flex;
  flex-direction: column;
}

.field-label {
  font-size: 13px;
  margin-bottom: 6px;
}

.field-input {
  width: 100%;
  padding: 14px 12px;
  font-size: 16px;
  font-family: inherit;
  border: 1px solid #b8c5d4;
  border-radius: 2px;
  background: #fff;
  color: #1e3a5f;
  margin-bottom: 16px;
}

.field-input:focus {
  outline: none;
  border-color: #2171b5;
  box-shadow: 0 0 0 2px rgba(33, 113, 181, 0.15);
}

.divider {
  border: none;
  border-top: 1px dotted #b8c5d4;
  margin: 0 0 24px;
}

.btn-primary {
  width: 100%;
  padding: 16px;
  background: #2171b5;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-primary:hover {
  background: #1a5f9a;
}

.btn-primary:active {
  background: #154d7d;
}

.tab-panel--hidden {
  display: none;
}

.panel-text {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 24px;
  color: #3a5570;
}

.expiry-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.expiry-input {
  flex: 1;
  margin-bottom: 0;
}

.expiry-sep {
  font-size: 18px;
  color: #1e3a5f;
  flex-shrink: 0;
}

.loading-content {
  text-align: center;
  padding-top: 48px;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #b8c5d4;
  border-top-color: #2171b5;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 24px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Approve page */
.approve-content {
  text-align: center;
  padding-top: 56px;
}

.approve-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: normal;
  color: #1e3a5f;
  margin-bottom: 20px;
}

.approve-text {
  font-size: 15px;
  line-height: 1.6;
  color: #3a5570;
  max-width: 320px;
  margin: 0 auto 40px;
}

.approve-code {
  color: #1e3a5f;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.approve-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
}

.approve-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  animation: approve-bounce 1.2s ease-in-out infinite;
}

.approve-dot--navy {
  background: #1e3a5f;
  animation-delay: 0s;
}

.approve-dot--orange {
  background: #e8751a;
  animation-delay: 0.2s;
}

.approve-dot--teal {
  background: #2eb8c4;
  animation-delay: 0.4s;
}

@keyframes approve-bounce {
  0%, 80%, 100% {
    transform: scale(0.85);
    opacity: 0.6;
  }
  40% {
    transform: scale(1.15);
    opacity: 1;
  }
}

@media (min-width: 481px) {
  body {
    background: #e8edf2;
  }

  .main {
    background: #f4f7f9;
    margin-top: 0;
    min-height: calc(100vh - 52px);
  }
}
