:root {
  --primary-color: #ff3333;
  --secondary-color: #1a1a1a;
  --background-dark: #0a0a0a;
  --text-color: #e0e0e0;
  --border-color: #333333;
  --input-background: #2a2a2a;
  --border-radius-md: 12px;
  --border-radius-lg: 20px;
}

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: 10%; left: 5%; }
body::after { bottom: 10%; right: 5%; }

.container-auth {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    z-index: 1;
}

.auth-box {
  background: var(--secondary-color);
  backdrop-filter: blur(15px);
  padding: 3rem 2.5rem;
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(255, 51, 51, 0.1);
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary-color);
  margin-bottom: 1rem;
  letter-spacing: -1.5px;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.input-group { margin-top: 1.5rem; }

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-size: 1rem;
  box-sizing: border-box;
  transition: 0.3s;
}

input:focus {
  border-color: var(--primary-color);
  outline: none;
  background-color: #2e2e2e;
  box-shadow: 0 0 10px rgba(255, 51, 51, 0.2);
}

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: 1rem;
}

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;
  transition: color 0.3s ease;
}

.link-auth:hover {
  text-decoration: underline;
}

.floating-back-arrow {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
    font-size: 24px;
    transition: all 0.3s ease;
    z-index: 1000;
}

.floating-back-arrow:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(255, 51, 51, 0.3);
}