/* Premium Auth Redesign CSS */

:root {
  --auth-primary: #4f46e5;
  --auth-primary-dark: #3730a3;
  --auth-secondary: #0ea5e9;
  --auth-gradient-bg: linear-gradient(-45deg, #0f172a, #1e1b4b, #312e81, #0f172a);
  --auth-glass-bg: rgba(255, 255, 255, 0.9);
  --auth-glass-border: rgba(255, 255, 255, 0.5);
  --auth-shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  --auth-text-dark: #0f172a;
  --auth-text-muted: #64748b;
  --auth-radius-xl: 1.5rem;
}

body.auth-page {
  font-family: 'Poppins', sans-serif;
  background: var(--auth-gradient-bg);
  background-size: 400% 400%;
  animation: authGradientAnim 15s ease infinite;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--auth-text-dark);
}

@keyframes authGradientAnim {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Glassmorphism Card */
.auth-v2-card {
  background: var(--auth-glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--auth-glass-border);
  border-radius: var(--auth-radius-xl);
  box-shadow: var(--auth-shadow-lg);
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: 450px;
  animation: authFadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.auth-v2-card.register-card {
  max-width: 900px;
}

@keyframes authFadeInUp {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Form Elements */
.auth-form-container {
  padding: 3rem;
}

@media (max-width: 576px) {
  .auth-form-container {
    padding: 2rem;
  }
}

.auth-brand {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-brand img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: white;
  padding: 5px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  margin-bottom: 1rem;
}

.auth-brand h3 {
  font-weight: 800;
  color: var(--auth-text-dark);
  margin-bottom: 0.25rem;
  font-size: 1.5rem;
}

.auth-brand p {
  color: var(--auth-text-muted);
  font-size: 0.9rem;
}

.form-label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--auth-text-dark);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.input-group-text {
  background: rgba(255, 255, 255, 0.5);
  border-color: #e2e8f0;
  color: var(--auth-text-muted);
}

.form-control {
  background: rgba(255, 255, 255, 0.5);
  border-color: #e2e8f0;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  background: white;
  border-color: var(--auth-primary);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.input-group:focus-within .input-group-text {
  background: white;
  border-color: var(--auth-primary);
  color: var(--auth-primary);
}

.btn-auth {
  background: linear-gradient(135deg, var(--auth-primary) 0%, var(--auth-primary-dark) 100%);
  color: white;
  border: none;
  font-weight: 600;
  padding: 0.8rem;
  border-radius: 50rem;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.5);
  margin-top: 1rem;
}

.btn-auth:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 25px -5px rgba(79, 70, 229, 0.6);
  color: white;
}

.auth-links {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.auth-links a {
  color: var(--auth-primary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.auth-links a:hover {
  color: var(--auth-primary-dark);
}

/* Split Register Specific */
.register-cover {
  background: linear-gradient(135deg, var(--auth-primary) 0%, var(--auth-primary-dark) 100%);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.register-cover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.1"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
}

.register-cover-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.register-cover-content h2 {
  font-weight: 800;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.register-cover-content p {
  opacity: 0.9;
  font-size: 1.1rem;
  line-height: 1.6;
}

.btn-auth-outline {
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: white;
  font-weight: 600;
  padding: 0.6rem 2rem;
  border-radius: 50rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  margin-top: 2rem;
  display: inline-block;
}

.btn-auth-outline:hover {
  background: white;
  color: var(--auth-primary-dark);
}
