@charset "UTF-8";
@import url("https://fonts.googleapis.com/css?family=Poppins:400,500,600&display=swap");

/* ================= THEME ================= */
:root {
  --primary: #6f5cff;
  --primary-dark: #1d2440;
  --primary-light: #a79cff;

  --bg-start: #7b67ff;
  --bg-mid: #5c4cff;
  --bg-end: #2ca8ff;
  
--btn-deposit: #3b82f6;
--btn-withdraw: #ff8f5a;
--btn-history: #1d2440;
--btn-team: #16a34a;
--text-color: #ffffff;
--bg-warning: #ffd36f;
--bg-input: #4b57c7;
  --glow: rgba(111,92,255,0.45);
}

/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

a {
  color: var(--text-color);
  text-decoration: none;
}

a:hover {
  color: var(--text-color);
}

/* ================= BODY ================= */
html, body {
  width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;

  min-height: 100vh;

  font-family: 'Poppins', sans-serif;
  color: var(--text-color);

  background:
    radial-gradient(circle at top left, rgba(167, 156, 255, 0.35), transparent 28%),
    linear-gradient(180deg, #eef2ff 0%, #f7f9ff 45%, #ffffff 100%);

  overflow-x: hidden;
  overflow-y: auto;

  position: relative;

  animation: fadeIn 0.3s ease;
}

/* background glow */
body::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, var(--glow), transparent 65%);
  top: -130px;
  right: -120px;
  pointer-events: none;
}
.auth-page {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* ================= LAYOUT ================= */
.app {
  width: 460px;
  padding: 20px;
  z-index: 2;
}

/* ================= CARD ================= */
.card {
  background: var(--primary);
  backdrop-filter: blur(18px);
  border-radius: 26px;
  padding: 35px 28px;
  border: 1px solid var(--primary-light);
  box-shadow: 0 25px 60px var(--primary-dark);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* glow */
.card::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, var(--glow), transparent);
  top: -60px;
  right: -60px;
  pointer-events: none;
}

/* ================= ICON ================= */
.icon {
  width: 75px;
  height: 75px;
  margin: auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  font-size: 28px;
  margin-bottom: 18px;
  box-shadow: 0 0 20px var(--glow);
}

/* ================= TEXT ================= */
.title {
  font-size: 22px;
  font-weight: 600;
}

.subtitle {
  font-size: 13px;
  opacity: .8;
  margin-bottom: 25px;
}

/* ================= INPUT ================= */
.input-group {
  background: var(--bg-input);
  border: 1px solid var(--primary-dark);
  border-radius: 14px;
  display: flex;
  align-items: center;
  padding: 12px 15px;
  margin-bottom: 15px;
}

.input-group i {
  color: var(--primary-light);
  margin-right: 10px;
}

.input-group input {
  background: none;
  border: none;
  outline: none;
  color: var(--text-color);
  width: 100%;
}

/* ================= BUTTON ================= */
.btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 30px;
   background: radial-gradient(circle, var(--primary-dark), transparent);
  color: var(--text-color);
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: .3s;
}

.btn:hover {
  box-shadow: 0 0 15px var(--glow);
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

/* ================= BUTTON LOADING ================= */
.btn.btn-loading span {
  visibility: hidden;
}

.btn.btn-loading::after {
  content: "";
  width: 18px;
  height: 18px;
  border: 2px solid var(--text-color);
  border-top: transparent;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ================= LINKS ================= */
.signup, .login-link {
  margin-top: 15px;
  font-size: 13px;
}

.signup a, .login-link a {
  color: var(--primary-light);
}

/* ================= ALERT ================= */
.alert {
  color: var(--primary-light);
}

/* ================= FEATURES ================= */
.features {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.feature {
  font-size: 11px;
  text-align: center;
}

.feature i {
  display: block;
  font-size: 18px;
  margin-bottom: 5px;
  color: var(--primary-light);
}



/* ================= SIDEBAR restrt ================= */
.sidebar {
  position: fixed;
  top: 0;
  left: -260px;

  width: 260px;
  height: 100%;

  background: var(--primary-dark);
  backdrop-filter: blur(16px);

  transition: 0.3s;
  z-index: 9999;

  display: flex;
  flex-direction: column;
}

/* ACTIVE */
.sidebar.active {
  left: 0;
}

/* ================= HEADER ================= */
.sidebar-header {
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;

  border-bottom: 1px solid var(--primary);
}

.sidebar-header h3 {
  font-size: 16px;
}

.sidebar-header button {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-color);
}

/* ================= MENU ================= */
.sidebar-menu {
  padding: 10px;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 12px;
  border-radius: 10px;

  color: var(--text-color);
  text-decoration: none;
  font-size: 13px;

  transition: 0.3s;
}

.sidebar-menu a i {
  width: 18px;
}

/* HOVER */
.sidebar-menu a:hover {
  background: var(--bg-end);
}

/* LOGOUT */
.sidebar-menu .logout {
  margin-top: 10px;
 background: linear-gradient(135deg, var(--primary), var(--primary-end));
}

/* ================= SAVED USERS ================= */
.saved-user {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  margin-bottom: 8px;
  border-radius: 10px;
  background: var(--btn-history);
}

.saved-user button {
  background: var(--primary);
  border: none;
  color: var(--text-color);
  border-radius: 6px;
  padding: 4px 8px;
}

/* ================= PREVIEW IMAGE ================= */
.preview-img {
  width: 120px;
  display: none;
  margin: 10px auto;
  border-radius: 10px;
}

/* ================= LOGIN PAGE ================= */
.login-page {
  background:
    radial-gradient(circle at top left, rgba(130, 92, 255, 0.32), transparent 32%),
    radial-gradient(circle at bottom right, rgba(130, 92, 255, 0.26), transparent 28%),
    linear-gradient(180deg, #f4f1ff 0%, #f8f4ec 100%);
  color: #20243d;
  overflow-y: auto;
}

.login-page::before {
  width: 360px;
  height: 360px;
  top: -120px;
  right: -120px;
  background: radial-gradient(circle, rgba(108, 81, 255, 0.24), transparent 66%);
}

.login-app {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
}

.login-card {
  width: 100%;
  max-width: 360px;
  background: #ffffff;
  border: 1px solid rgba(125, 103, 255, 0.16);
  box-shadow: 0 24px 70px rgba(58, 39, 122, 0.18);
  color: #20243d;
  padding: 0;
  position: relative;
}

.login-card::before {
  display: none;
}

.login-card-inner {
  position: relative;
  z-index: 2;
  padding: 34px 24px 28px;
}

.login-shape {
  position: absolute;
  background: linear-gradient(135deg, #7d67ff 0%, #5c4cff 100%);
  z-index: 1;
}

.login-shape-top {
  width: 122px;
  height: 102px;
  top: 0;
  left: 0;
  border-radius: 24px 0 72px 0;
}

.login-shape-bottom {
  width: 112px;
  height: 92px;
  right: 0;
  bottom: 0;
  border-radius: 72px 0 26px 0;
}

.login-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 22px;
  background: linear-gradient(135deg, #7d67ff 0%, #5c4cff 100%);
  box-shadow: 0 14px 28px rgba(92, 76, 255, 0.24);
  color: #ffffff;
}

.login-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7d67ff;
  margin-bottom: 10px;
}

.login-page .title {
  font-size: 29px;
  font-weight: 700;
  line-height: 1.15;
  color: #20243d;
  margin-bottom: 10px;
}

.login-page .subtitle {
  font-size: 14px;
  line-height: 1.7;
  color: #727897;
  margin: 0 auto 26px;
  max-width: 260px;
}

.login-alert {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #be123c;
  border-radius: 16px;
  padding: 12px 14px;
  font-size: 13px;
  margin-bottom: 18px;
}

.quick-login-panel {
  text-align: left;
  background: #f8f7ff;
  border: 1px solid #ece8ff;
  border-radius: 22px;
  padding: 14px;
  margin-bottom: 18px;
}

.quick-login-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #656b87;
  margin-bottom: 10px;
}

.select-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #ddd8ff;
  border-radius: 16px;
  padding: 0 14px;
  min-height: 54px;
}

.select-wrap i {
  color: #7d67ff;
  font-size: 15px;
}

.select-wrap select {
  width: 100%;
  min-height: 54px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #20243d;
  font-size: 14px;
  appearance: none;
}

.login-input-group {
  background: #ffffff;
  border: 1px solid #ddd8ff;
  border-radius: 16px;
  padding: 0 16px;
  min-height: 58px;
  box-shadow: 0 10px 24px rgba(100, 81, 182, 0.06);
}

.login-input-group:focus-within,
.select-wrap:focus-within {
  border-color: #7d67ff;
  box-shadow: 0 0 0 4px rgba(125, 103, 255, 0.12);
}

.login-input-group i {
  color: #7d67ff;
  margin-right: 12px;
  font-size: 14px;
}

.login-input-group input {
  color: #20243d;
  font-size: 14px;
}

.login-input-group input::placeholder,
.select-wrap select {
  color: #8b90a8;
}

.login-btn {
  margin-top: 8px;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #7d67ff 0%, #5c4cff 100%);
  color: #ffffff;
  box-shadow: 0 18px 30px rgba(92, 76, 255, 0.22);
}

.login-btn:hover {
  background: linear-gradient(135deg, #6e5af0 0%, #5143e3 100%);
  box-shadow: 0 22px 34px rgba(92, 76, 255, 0.28);
}

.login-btn i {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  font-size: 12px;
}

.login-btn.btn-loading i {
  visibility: hidden;
}

.login-signup {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  color: #727897;
  font-size: 13px;
}

.login-signup a.login-secondary-link {
  color: #5c4cff;
  font-weight: 600;
}

@media (max-width: 420px) {
  .login-card-inner {
    padding: 30px 18px 24px;
  }

  .login-page .title {
    font-size: 25px;
  }

  .login-shape-top {
    width: 98px;
    height: 84px;
  }

  .login-shape-bottom {
    width: 92px;
    height: 78px;
  }
}

/* ================= SIGNUP PAGE ================= */
.signup-page {
  background:
    radial-gradient(circle at top left, rgba(130, 92, 255, 0.32), transparent 32%),
    radial-gradient(circle at bottom right, rgba(130, 92, 255, 0.26), transparent 28%),
    linear-gradient(180deg, #f4f1ff 0%, #f8f4ec 100%);
  color: #20243d;
  overflow-y: auto;
}

.signup-page::before {
  width: 360px;
  height: 360px;
  top: -120px;
  right: -120px;
  background: radial-gradient(circle, rgba(108, 81, 255, 0.24), transparent 66%);
}

.signup-card {
  max-width: 380px;
}

.signup-card-inner {
  padding-bottom: 30px;
}

.signup-features {
  gap: 10px;
  margin-bottom: 22px;
}

.signup-feature {
  flex: 1;
  background: #f8f7ff;
  border: 1px solid #ece8ff;
  border-radius: 18px;
  padding: 12px 8px;
  color: #656b87;
  font-size: 11px;
  line-height: 1.45;
}

.signup-feature i {
  color: #7d67ff;
  font-size: 16px;
  margin-bottom: 8px;
}

.referral-panel {
  margin-top: 4px;
  margin-bottom: 18px;
}

.referral-input-group {
  margin-bottom: 0;
}

.referral-input-group input[readonly] {
  cursor: default;
}

.signup-btn {
  margin-top: 0;
}

.signup-trust {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #727897;
  font-size: 13px;
}

.signup-trust i {
  color: #5c4cff;
}

.signup-switch {
  margin-top: 16px;
}

@media (max-width: 420px) {
  .signup-features {
    gap: 8px;
  }

  .signup-feature {
    padding: 10px 6px;
    font-size: 10px;
  }

  .signup-trust {
    font-size: 12px;
  }
}
