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

/* ================= THEME ================= */
:root {
  --primary: #ff8c00;
  --primary-dark: #140c09;
  --primary-light: #ffa94d;

  --bg-start: #ff8c00;
  --bg-mid: #ff4500;
  --bg-end: #a72500;
  
--btn-deposit: #3b82f6;
--btn-withdraw: #a72500;
--btn-history: #140c09;
--btn-team: #16a34a;
--text-color: #ffffff;
--bg-warning: #ffa94d;
--bg-input: #b24903;
  --glow: rgba(255,140,0,0.7);
}

/* ================= 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, var(--bg-start), var(--bg-mid), var(--bg-end));

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

  position: relative;

  animation: fadeIn 0.3s ease;
}

/* background glow */
body::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--glow), transparent);
  top: -100px;
  right: -100px;
  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 REDESIGN ================= */
body.auth-login-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 76% 24%, rgba(68, 91, 255, 0.2), transparent 30%),
    radial-gradient(circle at 20% 72%, rgba(46, 144, 255, 0.14), transparent 28%),
    linear-gradient(150deg, #070a20 0%, #0b102d 48%, #050817 100%);
  color: #f7f8ff;
}

body.auth-login-page::before {
  width: 460px;
  height: 460px;
  top: 8%;
  right: -180px;
  background:
    repeating-radial-gradient(ellipse at center, rgba(71, 105, 255, 0.24) 0 2px, transparent 3px 28px);
  border-radius: 50%;
  opacity: 0.5;
  transform: rotate(-24deg);
}

.auth-login-page::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
              linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 62%);
}

.auth-login-page.auth-page {
  align-items: flex-start;
  min-height: 100vh;
  overflow-y: auto;
  padding: 26px 0;
}

.auth-login-page .app {
  width: min(100%, 500px);
  padding: 0 18px;
}

.auth-login-card.card {
  padding: 54px 0 30px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

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

.auth-login-card .auth-mark {
  width: 74px;
  height: 74px;
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 26px;
  color: #8ea1ff;
  font-size: 30px;
  background: linear-gradient(145deg, rgba(74, 144, 255, 0.22), rgba(103, 93, 255, 0.08));
  border: 1px solid rgba(123, 141, 255, 0.2);
  box-shadow: 0 18px 44px rgba(49, 89, 255, 0.18);
}

.auth-login-card .title {
  font-size: clamp(30px, 8vw, 42px);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: 0;
}

.auth-login-card .subtitle {
  margin: 14px 0 44px;
  font-size: clamp(16px, 4vw, 20px);
  color: #9da5c3;
  opacity: 1;
}

.auth-login-card .alert {
  margin: -20px 0 24px;
  padding: 12px 14px;
  border-radius: 16px;
  color: #ffd166;
  background: rgba(255, 209, 102, 0.1);
  border: 1px solid rgba(255, 209, 102, 0.2);
  text-align: left;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: end;
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(139, 150, 197, 0.2);
}

.auth-tabs span,
.auth-tabs a {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3bd;
  font-size: 18px;
  font-weight: 600;
}

.auth-tabs .active {
  position: relative;
  color: #ffffff;
}

.auth-tabs .active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(90deg, #42a4ff, #6a67ff);
  box-shadow: 0 0 18px rgba(79, 143, 255, 0.65);
}

.auth-login-card form {
  text-align: left;
}

.auth-login-card .saved-account,
.auth-login-card .input-group {
  width: 100%;
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  padding: 0 20px;
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(143, 153, 205, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
}

.auth-login-card .saved-account i,
.auth-login-card .input-group i {
  width: 24px;
  margin-right: 0;
  color: #7e84ff;
  font-size: 22px;
  text-align: center;
}

.auth-login-card .saved-account select,
.auth-login-card .input-group input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f7f8ff;
  font-size: 18px;
  font-weight: 500;
}

.auth-login-card .saved-account select {
  cursor: pointer;
  appearance: none;
}

.auth-login-card .saved-account select option {
  color: #101426;
}

.auth-login-card .input-group input::placeholder {
  color: #9da5c3;
}

.password-toggle {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #7e84ff;
  cursor: pointer;
}

.password-toggle i {
  width: auto !important;
}

.auth-login-card .btn {
  min-height: 68px;
  margin-top: 12px;
  border-radius: 18px;
  background: linear-gradient(100deg, #43a8ff 0%, #6c61ff 100%);
  color: #ffffff;
  font-size: 19px;
  box-shadow: 0 18px 34px rgba(65, 123, 255, 0.26);
}

.auth-login-card .btn:hover {
  background: linear-gradient(100deg, #62b7ff 0%, #7d73ff 100%);
  box-shadow: 0 20px 42px rgba(79, 132, 255, 0.35);
}

.auth-login-card .signup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 26px;
  color: #9da5c3;
  font-size: 15px;
}

.auth-login-card .signup a {
  color: #4c9cff;
  font-weight: 600;
}

@media (max-width: 420px) {
  .auth-login-page.auth-page {
    padding: 18px 0;
  }

  .auth-login-card.card {
    padding-top: 34px;
  }

  .auth-login-card .auth-mark {
    width: 62px;
    height: 62px;
    margin-bottom: 24px;
    border-radius: 22px;
    font-size: 26px;
  }

  .auth-login-card .subtitle {
    margin-bottom: 34px;
  }

  .auth-tabs span,
  .auth-tabs a {
    min-height: 50px;
    font-size: 16px;
  }

  .auth-login-card .saved-account,
  .auth-login-card .input-group,
  .auth-login-card .btn {
    min-height: 62px;
    border-radius: 17px;
  }

  .auth-login-card .saved-account select,
  .auth-login-card .input-group input {
    font-size: 16px;
  }
}

/* ================= SIGNUP REDESIGN ================= */
.auth-signup-page.auth-page {
  padding-top: 22px;
  padding-bottom: 28px;
}

.auth-signup-card.auth-login-card.card {
  padding-top: 44px;
}

.auth-back {
  position: absolute;
  top: 18px;
  left: 0;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 23px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-back:hover {
  color: #ffffff;
  background: rgba(76, 156, 255, 0.14);
}

.auth-signup-card .auth-mark {
  margin-top: 32px;
  margin-bottom: 26px;
}

.auth-signup-card .subtitle {
  margin-bottom: 38px;
}

.auth-signup-card .auth-tabs {
  margin-bottom: 30px;
}

.auth-signup-card .input-group {
  margin-bottom: 14px;
}

.auth-checklist {
  display: grid;
  gap: 13px;
  margin: 20px 0 26px;
  color: #aeb5cc;
  font-size: 15px;
}

.auth-checklist div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-checklist i {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #4c9cff;
  border: 2px solid #2f7cff;
  background: rgba(47, 124, 255, 0.08);
  font-size: 14px;
}

.auth-signup-card .login-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 28px;
  color: #9da5c3;
  font-size: 15px;
}

.auth-signup-card .login-link a {
  color: #4c9cff;
  font-weight: 600;
}

@media (max-width: 420px) {
  .auth-signup-page.auth-page {
    padding-top: 14px;
  }

  .auth-signup-card.auth-login-card.card {
    padding-top: 34px;
  }

  .auth-back {
    top: 8px;
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .auth-signup-card .auth-mark {
    margin-top: 34px;
    margin-bottom: 22px;
  }

  .auth-checklist {
    font-size: 14px;
  }
}
