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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: #14151f;
  color: #e1e4f0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.page {
  width: 100%;
  max-width: 400px;
}

.card {
  background: #1e2035;
  border: 1px solid #2d3050;
  border-radius: 12px;
  padding: 40px 36px;
}

/* Brand */

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.brand-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  background: linear-gradient(135deg, #ff8a00, #e52e71);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.app-hint {
  font-size: 14px;
  color: #7f8ab0;
  margin-bottom: 24px;
  line-height: 1.4;
}

.app-hint strong {
  color: #c5cae0;
  font-weight: 600;
}

/* Error */

.error-box {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #fc8181;
  margin-bottom: 16px;
  line-height: 1.4;
}

.hidden {
  display: none !important;
}

/* Tabs */

.tabs {
  display: flex;
  border-bottom: 1px solid #2d3050;
  margin-bottom: 24px;
}

.tab {
  flex: 1;
  background: none;
  border: none;
  color: #7f8ab0;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px 12px;
  cursor: pointer;
  position: relative;
  transition: color 0.15s;
}

.tab:hover {
  color: #c5cae0;
}

.tab.active {
  color: #e1e4f0;
}

.tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #ff8a00, #e52e71);
  border-radius: 2px 2px 0 0;
}

/* Form fields */

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #9ba3c0;
  margin-bottom: 6px;
}

.field .optional {
  color: #4d5470;
  font-weight: 400;
}

.field input {
  width: 100%;
  background: #0d0e18;
  border: 1px solid #2d3050;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  color: #e1e4f0;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
}

.field input:focus {
  border-color: #5260c9;
  box-shadow: 0 0 0 3px rgba(82, 96, 201, 0.15);
}

.field input::placeholder {
  color: #3a3e5a;
}

/* Buttons */

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: opacity 0.15s, transform 0.1s;
  margin-bottom: 12px;
  line-height: 1;
}

.btn:last-child {
  margin-bottom: 0;
}

.btn:active {
  transform: scale(0.99);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: linear-gradient(135deg, #5260c9, #7c4db8);
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  opacity: 0.88;
}

.btn-oauth {
  background: #0d0e18;
  border: 1px solid #2d3050;
  color: #c5cae0;
}

.btn-oauth:hover:not(:disabled) {
  border-color: #4d5580;
  color: #e1e4f0;
}

.btn-wallet {
  background: #0d0e18;
  border: 1px solid #2d3050;
  color: #c5cae0;
}

.btn-wallet:hover:not(:disabled) {
  border-color: #f6851b;
  color: #f6d08a;
}

.oauth-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 4px;
}

/* Divider */

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #3a3e5a;
  font-size: 12px;
  margin: 20px 0;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #2d3050;
}

/* Sent confirmation box */

.sent-box {
  text-align: center;
  padding: 8px 0 4px;
}

.sent-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: #5260c9;
}

.sent-icon svg {
  width: 100%;
  height: 100%;
}

.sent-title {
  font-size: 16px;
  font-weight: 600;
  color: #e1e4f0;
  margin-bottom: 8px;
}

.sent-body {
  font-size: 14px;
  color: #7f8ab0;
  line-height: 1.5;
  margin-bottom: 20px;
}

.sent-body strong {
  color: #c5cae0;
  font-weight: 500;
}

.btn-ghost {
  background: transparent;
  border: 1px solid #2d3050;
  color: #7f8ab0;
  font-size: 13px;
}

.btn-ghost:hover:not(:disabled) {
  border-color: #4d5580;
  color: #c5cae0;
}

/* Mobile */

@media (max-width: 440px) {
  .card {
    padding: 32px 24px;
  }
}
