@charset "UTF-8";
@import url("https://fonts.googleapis.com/css?family=Poppins:400,500,600&display=swap");
a {
  color: #fff;
  outline: 0 !important;
  text-decoration: none;
}

a:hover, a:active, a:focus {
  outline: 0 !important;
  color: #fff;
  text-decoration: none;
}

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

html, body {
  width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;

  min-height: 100vh;

  font-family: 'Poppins', sans-serif;
 background: radial-gradient(circle at top, #8b0000, #2a0000);
  color: #fff;

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

  position: relative;

  animation: fadeIn 0.3s ease;
}

/* ================= BODY ================= */

.auth-page {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* background glow */
body::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,0,0,0.3), transparent);
  top: -100px;
  right: -100px;
  pointer-events: none;
}

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

/* ================= CARD ================= */
.card {
  background: rgba(105, 6, 6, 0.08);
  backdrop-filter: blur(18px);
  border-radius: 26px;
  padding: 35px 28px;

  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 25px 60px rgba(0,0,0,0.7);
 color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}




.card::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(255,0,0,0.25), 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, #ff1a1a, #7a0000);
  font-size: 28px;
  margin-bottom: 18px;

  box-shadow: 0 0 20px rgba(255,0,0,0.7);
}

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

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

/* ================= INPUT ================= */
.input-group {
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 14px;

  display: flex;
  align-items: center;
  padding: 12px 15px;
  margin-bottom: 15px;
}

.input-group i {
  color: #ff4d4d;
  margin-right: 10px;
}

.input-group input {
  background: none;
  border: none;
  outline: none;
  color: #fff;
  width: 100%;
  font-size: 14px;
}

.input-group input::placeholder {
  color: rgba(255,255,255,0.6);
}

/* ================= BUTTON ================= */
.btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 30px;

  background: linear-gradient(135deg, #ff1a1a, #7a0000);
  color: #fff;

  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: .3s;
  margin-top: 10px;
}

.btn:hover {
  box-shadow: 0 0 15px rgba(255,0,0,0.7);
  background: linear-gradient(135deg, #ff4d4d, #a30000);
}

/* ================= LINKS ================= */
.signup {
  margin-top: 20px;
  font-size: 13px;
}

.signup a {
  color: #ff4d4d;
  text-decoration: none;
  font-weight: 600;
}

/* ================= ALERT ================= */
.alert {
  color: #ff4d4d;
  margin-bottom: 10px;
}

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

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

.feature i {
  display: block;
  font-size: 18px;
  margin-bottom: 5px;
  color: #ff4d4d;
}

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

.login-link a {
  color: #ff4d4d;
  text-decoration: none;
  font-weight: 600;
}

/* ================= BUTTON LOADING ================= */
.plan-btn.btn-loading {
  position: relative;
  pointer-events: none;
}

.plan-btn.btn-loading::after {
  content: "";
  width: 16px;
  height: 16px;

  border: 2px solid #fff;
  border-top: 2px solid transparent;
  border-radius: 50%;

  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: spin 0.6s linear infinite;
}

.plan-btn.btn-loading span {
  visibility: hidden;
}

/* HIDE TEXT */
.btn-loading span {
  visibility: hidden;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}
.input-error {
  border: 1px solid #ff4d4d;
}

/* ================= BUTTON LOADING ================= */
.btn {
  position: relative; /* important */
}

/* LOADING STATE */
.btn.btn-loading {
  pointer-events: none;
  opacity: 0.7;
}

/* HIDE TEXT */
.btn.btn-loading span {
  visibility: hidden;
}

/* SPINNER */
.btn.btn-loading::after {
  content: "";
  width: 18px;
  height: 18px;

  border: 2px solid #fff;
  border-top: 2px solid transparent;
  border-radius: 50%;

  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  animation: spin 0.6s linear infinite;
}

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

/* ================= OVERLAY ================= */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  z-index: 9998;
}

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

  width: 260px;
  height: 100%;

  background: rgba(20,0,0,0.95);
  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 rgba(255,255,255,0.1);
}

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

.sidebar-header button {
  background: none;
  border: none;
  font-size: 20px;
  color: #fff;
}

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

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

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

  color: #fff;
  text-decoration: none;
  font-size: 13px;

  transition: 0.3s;
}

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

/* HOVER */
.sidebar-menu a:hover {
  background: rgba(255,0,0,0.2);
}

/* LOGOUT */
.sidebar-menu .logout {
  margin-top: 10px;
  background: linear-gradient(135deg, #ff1a1a, #7a0000);
}

.summary-grid {
    display: flex;
    gap: 10px;
    text-align: center;
}

.summary-box {
    flex: 1;
    padding: 10px;
    border-radius: 14px;
    background: rgba(255,255,255,0.05);
}

.summary-box span {
    font-size: 11px;
    opacity: .7;
}

.summary-box strong {
    display: block;
    margin-top: 5px;
    font-size: 14px;
}

.saved-user {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 10px;
    margin-bottom: 8px;

    border-radius: 10px;
    background: rgba(255,255,255,0.06);
}

.saved-user span {
    cursor: pointer;
    flex: 1;
}

.saved-user button {
    border: none;
    background: #ff1a1a;
    color: #fff;
    border-radius: 6px;
    padding: 4px 8px;
    cursor: pointer;
}
