/* =========================================
   TikTok Wallet Styles
   ========================================= */

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

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background-color: #ffffff;
  color: #000000;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =========================================
   Container
   ========================================= */
.wallet-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 480px;
  margin: 0 auto;
}

/* =========================================
   Header
   ========================================= */
.wallet-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  background-color: #ffffff;
}

.wallet-header-transactions {
  justify-content: space-between;
}

.wallet-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tiktok-icon {
  width: 28px;
  height: 28px;
  color: #000000;
}

.wallet-logo-text {
  font-size: 18px;
  font-weight: 400;
  color: #000000;
}

.wallet-logo-text strong {
  font-weight: 700;
}

.help-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #000000;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
}

.help-icon {
  width: 18px;
  height: 18px;
  color: #000000;
}

/* =========================================
   Login Page
   ========================================= */
.login-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 60px 20px 40px;
}

.login-title {
  font-size: 24px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 40px;
  text-align: center;
}

.login-form {
  width: 100%;
}

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

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #000000;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  font-family: inherit;
  border: none;
  border-radius: 8px;
  background-color: #f0f0f0;
  color: #000000;
  outline: none;
  transition: background-color 0.2s ease;
}

.form-input::placeholder {
  color: #999999;
}

.form-input:focus {
  background-color: #e8e8e8;
}

.form-input.error {
  background-color: #fff0f0;
  border: 1px solid #ff4d4d;
}

.error-message {
  display: block;
  font-size: 12px;
  color: #ff4d4d;
  margin-top: 6px;
  min-height: 18px;
}

.login-button {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  color: #ffffff;
  background-color: #000000;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.login-button:hover {
  background-color: #d0d0d0;
}

.login-button:active {
  transform: scale(0.98);
}

.login-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* =========================================
   Login Footer
   ========================================= */
.login-footer {
  padding: 30px 20px;
  text-align: center;
  background-color: #e8e8e8;
}

.login-footer p {
  font-size: 14px;
  color: #666666;
}

.signup-link {
  color: #fe2c55;
  text-decoration: none;
  font-weight: 500;
}

.signup-link:hover {
  text-decoration: underline;
}

/* =========================================
   Transactions Page
   ========================================= */
.transactions-main {
  flex: 1;
  padding: 30px 20px;
  background-color: #ffffff;
}

.transactions-section {
  width: 100%;
}

.transactions-title {
  font-size: 22px;
  font-weight: 600;
  color: #000000;
  margin-bottom: 8px;
}

.transactions-subtitle {
  font-size: 14px;
  color: #666666;
  margin-bottom: 24px;
}

.transactions-card {
  background-color: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  overflow: hidden;
}

.transaction-item {
  display: flex;
  align-items: flex-start;
  padding: 16px;
  gap: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.transaction-item:last-child {
  border-bottom: none;
}

.transaction-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.transaction-icon svg {
  width: 20px;
  height: 20px;
}

.transaction-icon-cashout {
  background-color: #fff8e6;
  color: #ffc107;
}

.transaction-icon-reward {
  background-color: #e6f7f5;
  color: #00bfa5;
}

.transaction-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.transaction-type {
  font-size: 15px;
  font-weight: 600;
  color: #000000;
}

.transaction-date {
  font-size: 13px;
  color: #999999;
}

.transaction-status {
  font-size: 12px;
  color: #666666;
  margin-top: 4px;
}

.transaction-amount {
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  align-self: flex-start;
}

.transaction-amount-negative {
  color: #fe2c55;
}

.transaction-amount-positive {
  color: #00bfa5;
}

/* =========================================
   Transactions Footer
   ========================================= */
.transactions-footer {
  padding: 20px;
  text-align: center;
  border-top: 1px solid #f0f0f0;
  background-color: #ffffff;
}

.transactions-footer p {
  font-size: 12px;
  color: #999999;
}

/* =========================================
   Responsive
   ========================================= */
@media (min-width: 481px) {
  .wallet-container {
    border-left: 1px solid #f0f0f0;
    border-right: 1px solid #f0f0f0;
  }
}

@media (max-width: 360px) {
  .login-title {
    font-size: 20px;
  }

  .transactions-title {
    font-size: 18px;
  }

  .transaction-amount {
    font-size: 14px;
  }
}
