@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
  --primary: <?= $primaryColor ?? '#efefef' ?>;
  --bg-dark: #0a0a0a;
  --glass: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.1);
  --text-dim: #a0a0a0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Outfit', sans-serif;
}

body {
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-dark);
  color: white;
  overflow: hidden;
  position: relative;
}

/* Animated background mesh */
body::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, var(--primary) 0%, transparent 50%);
  opacity: 0.1;
  filter: blur(100px);
  animation: moveBG 15s linear infinite;
  z-index: -1;
}

@keyframes moveBG {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.login {
  width: 100%;
  max-width: 480px;
  padding: 20px;
}

.login-box {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  padding: 50px 40px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.login-title {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 40px;
  background: linear-gradient(to bottom, #fff, #888);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.form-login {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.group label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  padding-left: 5px;
}

.group input, .group select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  padding: 15px 20px;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.group input:focus, .group select:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05);
}

.group input::placeholder {
  color: #555;
  text-align: left;
}

.group select option {
  background-color: #1a1a1a;
  color: white;
}

.group button {
  margin-top: 15px;
  padding: 18px;
  border-radius: 15px;
  border: none;
  background: white;
  color: black;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.group button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
  background: #f0f0f0;
}

.group button:active {
  transform: translateY(0);
}

.no-register {
  margin-top: 30px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.no-register a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  margin-left: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.no-register a:hover {
  border-bottom-color: white;
}

/* Logo handling */
.login-header {
  text-align: center;
  margin-bottom: 30px;
}

.login-header img {
  max-width: 120px;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

@media (max-width: 480px) {
  .login-box {
    padding: 40px 25px;
  }
}