:root {
  --primary-color: #ff3333;
  --secondary-color: #1a1a1a;
  --background-dark: #0a0a0a;
  --text-color: #e0e0e0;
  --text-muted: #999999;
  --border-color: #333333;
  --input-background: #2a2a2a;
  --border-radius-md: 12px;
  --border-radius-lg: 20px;
  --spacing-unit: 1.5rem;
}

html, body {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  overflow: hidden !important;
  height: 100% !important;
  width: 100% !important;
}

::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, var(--background-dark) 0%, #151515 100%);
  color: var(--text-color);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  position: relative;
}

body::before, body::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,51,51,0.15) 0%, rgba(255,51,51,0) 70%);
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
}

body::before {
    top: -100px;
    left: -100px;
}

body::after {
    bottom: -100px;
    right: -100px;
}

#loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--background-dark);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 999999;
}

.loader-logo-container {
  margin-bottom: 25px;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pulse-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: pulseLogo 1.5s infinite ease-in-out;
}

@keyframes pulseLogo {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.progress-container {
  width: 200px;
  height: 4px;
  background: #151515;
  border: 1px solid #222;
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background-color: var(--primary-color);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.container-auth {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  padding: var(--spacing-unit);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.auth-box {
  background-color: rgba(21, 21, 21, 0.75);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  width: 100%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
  text-align: center;
  margin-bottom: 1.5rem;
}

.logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 2.5rem;
  color: var(--primary-color);
  letter-spacing: -1px;
  margin-bottom: 2rem;
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(255, 51, 51, 0.2);
}

h2 {
  font-weight: 600;
  margin-bottom: 2rem;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
}

input {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1.2rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  background-color: var(--input-background);
  color: var(--text-color);
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

input:focus {
  border-color: var(--primary-color);
  outline: none;
  background-color: #2e2e2e;
  box-shadow: 0 0 15px rgba(255, 51, 51, 0.15);
}

button {
  width: 100%;
  padding: 1rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius-md);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s ease;
  margin-top: 0.5rem;
}

button:hover {
  background-color: #e62e2e;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 51, 51, 0.3);
}

.link-auth {
  display: block;
  margin-top: 1.5rem;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
}

.link-auth:hover {
  text-decoration: underline;
}

.link-forgot {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.3s;
    opacity: 0.9;
}

.link-forgot:hover {
    opacity: 1;
    text-decoration: underline;
    transform: translateY(-1px);
}

.floating-back-arrow {
    position: absolute;
    top: 30px;
    left: 30px;
    width: 45px;
    height: 45px;
    background: rgba(21, 21, 21, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.floating-back-arrow:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(255, 51, 51, 0.3);
}