/*=========================================================
    LOVE PROJECT
    Version : 1.0
=========================================================*/

/*=========================================================
    GOOGLE FONT
=========================================================*/

:root {
  /* Colors */

  --background: #060816;

  --background-secondary: #0d1228;

  --surface: rgba(255, 255, 255, 0.08);

  --surface-hover: rgba(255, 255, 255, 0.12);

  --border: rgba(255, 255, 255, 0.12);

  --text: #ffffff;

  --text-muted: rgba(255, 255, 255, 0.65);

  --primary: #ff4d8d;

  --primary-light: #ff8cb6;

  --secondary: #7c5cff;

  --success: #6ee7b7;

  --danger: #ff6b81;

  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);

  --blur: 30px;

  --radius: 28px;

  --transition: 0.35s ease;
}

/*=========================================================
    RESET
=========================================================*/

* {
  margin: 0;

  padding: 0;

  box-sizing: border-box;
}

*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;

  overflow: hidden;

  direction: rtl;

  color: var(--text);

  background: var(--background);

  font-family: "Vazirmatn", sans-serif;

  position: relative;

  -webkit-font-smoothing: antialiased;
}

img {
  display: block;

  max-width: 100%;
}

button {
  border: none;

  background: none;

  outline: none;

  cursor: pointer;

  font-family: inherit;
}

input {
  font-family: inherit;

  outline: none;
}

a {
  color: inherit;

  text-decoration: none;
}

ul {
  list-style: none;
}

/*=========================================================
    SELECTION
=========================================================*/

::selection {
  background: var(--primary);

  color: white;
}

/*=========================================================
    SCROLLBAR
=========================================================*/

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #05070f;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--primary), var(--secondary));

  border-radius: 999px;
}

/*=========================================================
    LOADER
=========================================================*/

#loader {
  position: fixed;

  inset: 0;

  display: flex;

  flex-direction: column;

  justify-content: center;

  align-items: center;

  gap: 35px;

  background: #060816;

  z-index: 999999;

  transition:
    opacity 0.9s,
    visibility 0.9s;
}

#loader.hide {
  opacity: 0;

  visibility: hidden;
}

/*=========================================================
    LOADER HEART
=========================================================*/

.loader-heart {
  width: 70px;

  height: 70px;

  position: relative;

  transform: rotate(45deg);

  background: linear-gradient(135deg, #ff4d8d, #ff8cb6);

  animation: loaderBeat 1.3s infinite;

  box-shadow: 0 0 50px rgba(255, 77, 141, 0.45);
}

.loader-heart::before,
.loader-heart::after {
  content: "";

  position: absolute;

  width: 70px;

  height: 70px;

  border-radius: 50%;

  background: inherit;
}

.loader-heart::before {
  top: -35px;
}

.loader-heart::after {
  left: -35px;
}

#loader h2 {
  font-size: 16px;

  font-weight: 500;

  color: var(--text-muted);

  letter-spacing: 0.5px;
}
/*=========================================================
    BACKGROUND
=========================================================*/

body::before {
  content: "";

  position: fixed;

  inset: 0;

  z-index: -30;

  background:
    radial-gradient(
      circle at 10% 15%,
      rgba(255, 77, 141, 0.18),
      transparent 35%
    ),
    radial-gradient(
      circle at 90% 15%,
      rgba(124, 92, 255, 0.18),
      transparent 35%
    ),
    radial-gradient(
      circle at 50% 100%,
      rgba(56, 189, 248, 0.1),
      transparent 45%
    );
}

/*=========================================================
    AURORA
=========================================================*/

#aurora {
  position: fixed;

  inset: 0;

  overflow: hidden;

  z-index: -20;
}

#aurora span {
  position: absolute;

  width: 650px;

  height: 650px;

  border-radius: 50%;

  filter: blur(140px);

  opacity: 0.32;

  animation: auroraMove 18s ease-in-out infinite alternate;
}

#aurora span:nth-child(1) {
  background: #ff4d8d;

  top: -250px;

  left: -120px;
}

#aurora span:nth-child(2) {
  background: #7c5cff;

  bottom: -250px;

  right: -120px;

  animation-delay: 4s;
}

#aurora span:nth-child(3) {
  background: #38bdf8;

  top: 35%;

  left: 35%;

  animation-delay: 8s;
}

/*=========================================================
    PARTICLES
=========================================================*/

#particles {
  position: fixed;

  inset: 0;

  width: 100%;

  height: 100%;

  z-index: -15;

  pointer-events: none;
}

/*=========================================================
    NOISE
=========================================================*/

#noise {
  position: fixed;

  inset: 0;

  z-index: -10;

  pointer-events: none;

  opacity: 0.025;

  background-image: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.7) 1px,
    transparent 1px
  );

  background-size: 6px 6px;
}

/*=========================================================
    LOGIN PAGE
=========================================================*/

#login-page {
  min-height: 100vh;

  display: flex;

  align-items: center;

  justify-content: center;

  padding: 40px 18px;
}

/*=========================================================
    LOGIN CARD
=========================================================*/

.login-card {
  position: relative;

  width: 100%;

  padding: 48px;

  border-radius: var(--radius);

  background: var(--surface);

  border: 1px solid var(--border);

  backdrop-filter: blur(var(--blur));

  -webkit-backdrop-filter: blur(var(--blur));

  box-shadow: var(--shadow);

  overflow: hidden;

  transition: all 0.4s ease;
}

.login-card::before {
  content: "";

  position: absolute;

  inset: 0;

  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.06),
    transparent 60%
  );

  pointer-events: none;
}

.login-card:hover {
  transform: translateY(-6px);

  border-color: rgba(255, 255, 255, 0.2);
}

/*=========================================================
    LOGO
=========================================================*/

.login-logo {
  position: relative;

  width: 110px;

  height: 110px;

  margin: 0 auto 32px;
}

.logo-ring {
  position: absolute;

  inset: 0;

  border-radius: 50%;

  border: 2px solid rgba(255, 255, 255, 0.08);

  animation: rotateRing 18s linear infinite;
}

.logo-heart {
  position: absolute;

  inset: 0;

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 42px;

  color: var(--primary);

  text-shadow: 0 0 20px rgba(255, 77, 141, 0.45);

  animation: pulse 2.2s infinite;
}

/*=========================================================
    HEADER
=========================================================*/

.login-header {
  text-align: center;

  margin-bottom: 34px;
}

.login-header h1 {
  font-size: 34px;

  font-weight: 800;

  margin-bottom: 14px;

  line-height: 1.4;
}

.login-header p {
  color: var(--text-muted);

  font-size: 15px;

  line-height: 2;
}
/*=========================================================
    LOGIN FORM
=========================================================*/

#loginForm {
  display: flex;

  flex-direction: column;

  gap: 22px;
}

/*=========================================================
    INPUT BOX
=========================================================*/

.input-box {
  display: flex;

  flex-direction: column;

  gap: 10px;
}

.input-box label {
  font-size: 14px;

  font-weight: 600;

  color: rgba(255, 255, 255, 0.82);
}

/*=========================================================
    INPUT WRAPPER
=========================================================*/

.input-wrapper {
  position: relative;

  display: flex;

  align-items: center;

  height: 62px;

  border-radius: 20px;

  background: rgba(255, 255, 255, 0.05);

  border: 1px solid rgba(255, 255, 255, 0.08);

  overflow: hidden;

  transition: all 0.35s ease;
}

.input-wrapper:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.input-wrapper:focus-within {
  border-color: var(--primary);

  box-shadow:
    0 0 0 4px rgba(255, 77, 141, 0.12),
    0 0 40px rgba(255, 77, 141, 0.18);
}

/*=========================================================
    INPUT ICON
=========================================================*/

.input-wrapper > i {
  width: 58px;

  text-align: center;

  color: var(--primary-light);

  font-size: 18px;

  flex-shrink: 0;
}

/*=========================================================
    INPUT
=========================================================*/

.input-wrapper input {
  flex: 1;

  height: 100%;

  background: none;

  border: none;

  color: #fff;

  font-size: 15px;

  padding: 0;
}

.input-wrapper input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

/*=========================================================
    SHOW PASSWORD
=========================================================*/

#togglePassword {
  width: 58px;

  height: 58px;

  display: flex;

  justify-content: center;

  align-items: center;

  color: rgba(255, 255, 255, 0.7);

  transition: 0.3s;
}

#togglePassword:hover {
  color: #fff;
}

/*=========================================================
    REMEMBER
=========================================================*/

.remember-row {
  display: flex;

  justify-content: flex-start;

  align-items: center;
}

.remember-me {
  display: flex;

  align-items: center;

  gap: 10px;

  cursor: pointer;

  user-select: none;

  font-size: 14px;

  color: var(--text-muted);
}

.remember-me input {
  width: 18px;

  height: 18px;

  accent-color: var(--primary);
}

/*=========================================================
    ERROR
=========================================================*/

#loginError {
  display: none;

  padding: 14px 18px;

  border-radius: 16px;

  background: rgba(255, 80, 110, 0.12);

  border: 1px solid rgba(255, 80, 110, 0.25);

  color: #ff9cb0;

  text-align: center;

  font-size: 14px;

  line-height: 1.8;
}

/*=========================================================
    LOGIN BUTTON
=========================================================*/

#loginButton {
  position: relative;

  width: 100%;

  height: 60px;

  border-radius: 20px;

  overflow: hidden;

  color: #fff;

  font-size: 16px;

  font-weight: 700;

  background: linear-gradient(135deg, var(--primary), var(--secondary));

  transition: all 0.35s ease;

  box-shadow: 0 15px 35px rgba(255, 77, 141, 0.25);
}

#loginButton:hover {
  transform: translateY(-4px);

  box-shadow: 0 25px 45px rgba(255, 77, 141, 0.35);
}

#loginButton:active {
  transform: scale(0.98);
}

#loginButton::before {
  content: "";

  position: absolute;

  top: -40%;

  left: -120px;

  width: 90px;

  height: 200%;

  background: rgba(255, 255, 255, 0.28);

  transform: rotate(20deg);

  transition: 1s;
}

#loginButton:hover::before {
  left: 130%;
}

/*=========================================================
    BUTTON CONTENT
=========================================================*/

.button-loader {
  display: none;

  align-items: center;

  justify-content: center;

  gap: 6px;
}

.button-loader span {
  width: 8px;

  height: 8px;

  border-radius: 50%;

  background: #fff;

  animation: loaderDots 1s infinite;
}

.button-loader span:nth-child(2) {
  animation-delay: 0.2s;
}

.button-loader span:nth-child(3) {
  animation-delay: 0.4s;
}

/*=========================================================
    DIVIDER
=========================================================*/

.login-divider {
  display: flex;

  align-items: center;

  justify-content: center;

  margin: 34px 0 18px;
}

.login-divider span {
  width: 42px;

  height: 42px;

  display: flex;

  align-items: center;

  justify-content: center;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.06);

  border: 1px solid rgba(255, 255, 255, 0.08);

  font-size: 18px;
}

/*=========================================================
    FOOTER
=========================================================*/

.login-footer {
  text-align: center;
}

.login-footer small {
  color: rgba(255, 255, 255, 0.45);

  font-size: 13px;

  letter-spacing: 0.3px;
}
/*=========================================================
    UTILITIES
=========================================================*/

.hidden {
  display: none !important;
}

.invisible {
  opacity: 0 !important;

  visibility: hidden !important;
}

.blur {
  filter: blur(8px);
}

.no-select {
  user-select: none;
}

.text-center {
  text-align: center;
}

.w-100 {
  width: 100%;
}

/*=========================================================
    LOGIN STATES
=========================================================*/

#loginButton.loading {
  pointer-events: none;
}

#loginButton.loading .button-text {
  display: none;
}

#loginButton.loading .button-loader {
  display: flex;
}

#loginButton:disabled {
  opacity: 0.7;

  cursor: not-allowed;
}

/*=========================================================
    ANIMATIONS
=========================================================*/

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.12);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes rotateRing {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes loaderBeat {
  0% {
    transform: rotate(45deg) scale(1);
  }

  25% {
    transform: rotate(45deg) scale(1.08);
  }

  50% {
    transform: rotate(45deg) scale(0.95);
  }

  75% {
    transform: rotate(45deg) scale(1.08);
  }

  100% {
    transform: rotate(45deg) scale(1);
  }
}

@keyframes loaderDots {
  0% {
    transform: translateY(0);

    opacity: 0.4;
  }

  50% {
    transform: translateY(-6px);

    opacity: 1;
  }

  100% {
    transform: translateY(0);

    opacity: 0.4;
  }
}

@keyframes auroraMove {
  from {
    transform: translate(0, 0) scale(1);
  }

  to {
    transform: translate(90px, -70px) scale(1.25);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;

    transform: translateY(25px);
  }

  to {
    opacity: 1;

    transform: translateY(0);
  }
}

@keyframes shake {
  0% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(8px);
  }

  40% {
    transform: translateX(-8px);
  }

  60% {
    transform: translateX(6px);
  }

  80% {
    transform: translateX(-6px);
  }

  100% {
    transform: translateX(0);
  }
}

/*=========================================================
    HELPERS
=========================================================*/

.fade-up {
  animation: fadeUp 0.7s ease both;
}

.shake {
  animation: shake 0.45s;
}

.glow {
  box-shadow: 0 0 25px rgba(255, 77, 141, 0.3);
}

.radius {
  border-radius: var(--radius);
}

/*=========================================================
    ACCESSIBILITY
=========================================================*/

button:focus-visible,
input:focus-visible {
  outline: 2px solid rgba(255, 77, 141, 0.45);

  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;

    transition: none !important;

    scroll-behavior: auto !important;
  }
}


/* ===========================================
   Force Persian Fonts
=========================================== */

h1,
h2,
h3,
h4,
h5,
h6,
strong,
b,
.card-title,
.section-header h1,
.section-header h2,
.section-header h3,
.section-header h4,
.section-header h5,
.section-header h6 {
    font-family: "Rokh", "Vazirmatn", sans-serif !important;
    font-weight: inherit !important;
}

body,
button,
input,
textarea,
select,
option,
a,
span,
p,
div,
li,
td,
th,
label,
small {
    font-family: "Vazirmatn", sans-serif !important;
}