@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Core Colors */
  --bg-dark: #000000;
  --bg-dark-secondary: #0a0a0a;
  --primary: #64ffda;
  --primary-dark: #4ec2a4;
  --secondary: #00bcd4;
  --dark: #000000;
  --darker: #050505;
  --light: #ffffff;
  
  /* UI Elements */
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.5);
  --text-accent: #64ffda;
  
  /* Cards & Containers */
  --card-bg: rgba(10, 10, 10, 0.8);
  --card-border: rgba(255, 255, 255, 0.1);
  --card-highlight: rgba(100, 255, 218, 0.1);
  
  /* Form Elements */
  --input-bg: rgba(15, 15, 15, 0.9);
  --input-border: rgba(255, 255, 255, 0.1);
  --input-focus: rgba(100, 255, 218, 0.2);
  
  /* Buttons */
  --btn-primary-bg: #64ffda;
  --btn-primary-text: #050505;
  --btn-secondary-bg: rgba(25, 25, 25, 0.8);
  --btn-secondary-text: #ffffff;
  
  /* Social Buttons */
  --google-color: #ea4335;
  --twitter-color: #1da1f2;
  
  /* Effects */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-input: 0 2px 6px rgba(0, 0, 0, 0.1);
  --shadow-card: 0 15px 35px rgba(0, 0, 0, 0.5);
  --glow-primary: 0 0 15px rgba(100, 255, 218, 0.4);
  
  /* Animations */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  color: var(--text-primary);
  background-color: var(--bg-dark);
  background-image: 
    linear-gradient(125deg, #000000, #050505, #0d0d0d, #050505, #000000),
    radial-gradient(circle at 50% 50%, rgba(100, 255, 218, 0.05) 0%, rgba(0, 0, 0, 0) 50%);
  background-size: 400% 400%, 100% 100%;
  animation: gradientShift 25s ease infinite;
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    repeating-linear-gradient(80deg, rgba(100, 255, 218, 0.03) 0px, rgba(100, 255, 218, 0.03) 1px, transparent 1px, transparent 60px),
    repeating-linear-gradient(170deg, rgba(100, 255, 218, 0.03) 0px, rgba(100, 255, 218, 0.03) 1px, transparent 1px, transparent 60px);
  background-size: 70px 70px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
  animation: backgroundPatternShift 20s linear infinite;
}

@keyframes backgroundPatternShift {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 70px 70px;
  }
}

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

/* Accent Lines */
.accent-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.accent-line {
  position: absolute;
  background: linear-gradient(90deg, transparent, rgba(100, 255, 218, 0.1), transparent);
  height: 1px;
  width: 100%;
  transform: translateX(-100%);
}

.accent-line:nth-child(1) {
  top: 25%;
  animation: moveLine 18s linear infinite;
  animation-delay: 0s;
}

.accent-line:nth-child(2) {
  top: 45%;
  animation: moveLine 24s linear infinite;
  animation-delay: 5s;
}

.accent-line:nth-child(3) {
  top: 65%;
  animation: moveLine 30s linear infinite;
  animation-delay: 2s;
}

.accent-line:nth-child(4) {
  top: 85%;
  animation: moveLine 26s linear infinite;
  animation-delay: 8s;
}

@keyframes moveLine {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Glowing Orbs */
.glowing-orbs {
  position: fixed;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  z-index: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

.orb-1 {
  top: 20%;
  right: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle at center, var(--primary), transparent 70%);
  animation: floatOrb 30s ease-in-out infinite alternate;
}

.orb-2 {
  bottom: 10%;
  left: 15%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle at center, var(--secondary), transparent 70%);
  animation: floatOrb 25s ease-in-out infinite alternate-reverse;
}

.orb-3 {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle at center, rgba(100, 255, 218, 0.05), transparent 70%);
  animation: pulseOrb 15s ease-in-out infinite;
}

@keyframes floatOrb {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.2;
  }
  50% {
    transform: translate(-20px, 20px) scale(1.05);
    opacity: 0.3;
  }
  100% {
    transform: translate(20px, -20px) scale(0.95);
    opacity: 0.2;
  }
}

@keyframes pulseOrb {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.15;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.25;
  }
}

/* Logo */
.logo-link {
  position: absolute;
  top: 30px;
  left: 30px;
  text-decoration: none;
  z-index: 10;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 60px;
  filter: drop-shadow(0 0 12px rgba(100, 255, 218, 0.5));
  transition: var(--transition-normal);
}

.logo:hover img {
  filter: drop-shadow(0 0 18px rgba(100, 255, 218, 0.7));
  transform: scale(1.05);
}

/* Authentication Container */
.auth-container {
  width: 460px;
  min-height: 580px;
  position: relative;
  perspective: 1200px;
  margin: 0 20px;
  z-index: 10;
}

.form-panel {
  position: absolute;
  width: 100%;
  min-height: 100%;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-card),
              0 0 20px rgba(100, 255, 218, 0.05),
              inset 0 0 1px 1px rgba(100, 255, 218, 0.05);
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.form-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(to bottom right, rgba(100, 255, 218, 0.03), transparent),
    linear-gradient(to top left, rgba(0, 188, 212, 0.03), transparent);
  z-index: -1;
}

.form-content {
  padding: 40px;
  position: relative;
  z-index: 2;
}

.sign-in {
  transform: rotateY(0deg);
  z-index: 2;
}

.sign-up {
  transform: rotateY(180deg);
  z-index: 1;
}

/* Active States for Panel Switching */
#container.signup-active .sign-in {
  transform: rotateY(-180deg);
}

#container.signup-active .sign-up {
  transform: rotateY(0deg);
  z-index: 5;
}

/* Form Typography */
h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 8px;
  background: linear-gradient(to right, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  text-align: center;
  letter-spacing: -0.5px;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 15px;
  text-align: center;
  margin-bottom: 35px;
  letter-spacing: 0.2px;
}

/* Form Elements */
form {
  margin-bottom: 20px;
}

.input-field {
  position: relative;
  margin-bottom: 20px;
}

.input-field::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(to right, var(--primary), transparent);
  transition: width 0.4s ease;
  z-index: 2;
}

.input-field:focus-within::before {
  width: 100%;
}

.input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 16px;
  transition: var(--transition-normal);
}

.input-field:focus-within .input-icon {
  color: var(--primary);
}

.validation-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  opacity: 0;
  transition: var(--transition-normal);
}

.input-field.valid .validation-icon {
  opacity: 1;
}

input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 16px 15px 16px 45px;
  border-radius: var(--radius-md);
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--text-primary);
  font-size: 14px;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-input);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--input-focus);
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder {
  color: var(--text-muted);
}

/* Checkbox styling */
.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.remember-me, .agreement {
  display: flex;
  align-items: center;
}

.remember-me label, .agreement label {
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  margin-left: 8px;
}

.agreement label {
  font-size: 12px;
}

.agreement a {
  color: var(--primary);
  text-decoration: none;
  position: relative;
  transition: var(--transition-normal);
}

.agreement a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--primary);
  transition: width var(--transition-normal);
}

.agreement a:hover::after {
  width: 100%;
}

input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  position: relative;
  cursor: pointer;
  transition: var(--transition-normal);
}

input[type="checkbox"]:checked {
  background: var(--primary);
  border-color: var(--primary);
}

input[type="checkbox"]:checked::before {
  content: '✓';
  position: absolute;
  color: var(--dark);
  font-size: 12px;
  font-weight: bold;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Links */
.forgot-link {
  font-size: 13px;
  color: var(--text-accent);
  text-decoration: none;
  transition: var(--transition-normal);
  position: relative;
}

.forgot-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--primary);
  transition: width var(--transition-normal);
}

.forgot-link:hover::after {
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  border-radius: var(--radius-full);
  border: none;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-normal);
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn:hover::before {
  transform: translateX(100%);
}

.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.5px;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md), 
              0 0 20px rgba(100, 255, 218, 0.4);
}

.btn-primary:active {
  transform: translateY(-1px);
}

/* Toggle Option - Sign up/Sign in switches */
.toggle-option {
  text-align: center;
  margin-top: 20px;
  color: var(--text-secondary);
  font-size: 14px;
}

.toggle-option a {
  color: var(--text-accent);
  text-decoration: none;
  font-weight: 500;
  margin-left: 5px;
  position: relative;
  transition: all 0.3s ease;
}

.toggle-option a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background-color: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.toggle-option a:hover {
  color: var(--text-primary);
}

.toggle-option a:hover::after {
  transform: scaleX(1);
}

/* Footer */
.auth-footer {
  margin-top: 30px;
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  z-index: 5;
  position: relative;
}

/* Toggle Button for Mobile */
.hidden-toggle-btn {
  position: absolute;
  bottom: 20px;
  right: 20px;
  padding: 12px 20px;
  background-color: var(--primary);
  color: var(--btn-primary-text);
  border: none;
  border-radius: var(--radius-full);
  font-weight: 500;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  z-index: 10;
  display: none;
  transition: var(--transition-normal);
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.5px;
}

.hidden-toggle-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(100, 255, 218, 0.4);
}

/* Mobile Responsive Styles */
@media (max-width: 480px) {
  .auth-container {
    width: 100%;
    padding: 0 15px;
  }
  
  .form-panel {
    width: 100%;
    border-radius: var(--radius-md);
  }
  
  .form-content {
    padding: 25px 20px;
  }
  
  h1 {
    font-size: 24px;
    margin-bottom: 10px;
  }
  
  .subtitle {
    font-size: 14px;
    margin-bottom: 20px;
  }
  
  .input-field {
    margin-bottom: 15px;
  }
  
  input {
    height: 50px;
  }
  
  .orb-1, .orb-2, .orb-3 {
    opacity: 0.15;
  }
  
  .glitch::before,
  .glitch::after {
    display: none;
  }
}

/* Button ripple effect */
.btn-ripple {
  position: absolute;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  pointer-events: none;
  width: 100px;
  height: 100px;
  transform: translate(-50%, -50%) scale(0);
  opacity: 1;
  animation: btnRipple 0.6s ease-out;
}

@keyframes btnRipple {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(4);
    opacity: 0;
  }
}

/* Input ripple effect */
.input-ripple {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, var(--primary), transparent);
  transform-origin: left;
  transform: scaleX(0);
  opacity: 0;
  animation: inputRipple 0.8s ease-out forwards;
}

@keyframes inputRipple {
  0% {
    transform: scaleX(0);
    opacity: 0.5;
  }
  100% {
    transform: scaleX(1);
    opacity: 0;
  }
}

/* Key press animation */
.key-animation {
  animation: keyPress 0.1s ease-out;
}

@keyframes keyPress {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.98);
  }
  100% {
    transform: scale(1);
  }
}

/* Social button hover effect */
.social-hover {
  animation: socialHover 0.3s forwards;
}

@keyframes socialHover {
  0% {
    box-shadow: 0 0 0 0 rgba(100, 255, 218, 0);
  }
  100% {
    box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.1);
  }
}

/* Error shake animation */
.shake {
  animation: shakeError 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  perspective: 1000px;
}

@keyframes shakeError {
  10%, 90% {
    transform: translate3d(-1px, 0, 0);
  }
  20%, 80% {
    transform: translate3d(2px, 0, 0);
  }
  30%, 50%, 70% {
    transform: translate3d(-3px, 0, 0);
  }
  40%, 60% {
    transform: translate3d(3px, 0, 0);
  }
}

/* Form error states */
.input-field.error input {
  border-color: #ff3b3b;
  box-shadow: 0 0 0 2px rgba(255, 59, 59, 0.2);
}

.input-field.error .input-icon {
  color: #ff3b3b;
}

/* New styling for error messages */
.error-message {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  margin-bottom: 20px;
  background-color: rgba(255, 71, 87, 0.1);
  border-left: 3px solid #ff4757;
  border-radius: var(--radius-md);
  color: var(--text-primary);
}

.error-message i {
  color: #ff4757;
  font-size: 18px;
  margin-right: 10px;
}

/* Password strength meter */
.password-strength {
  margin: 8px 0 20px;
}

.strength-bar {
  height: 4px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  margin-bottom: 6px;
  overflow: hidden;
}

.strength-level {
  height: 100%;
  width: 0%;
  background-color: var(--primary);
  border-radius: var(--radius-full);
  transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-text {
  font-size: 12px;
  color: var(--text-muted);
  text-align: right;
}

/* Enhance input fields */
.input-field {
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.input-ripple {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(100, 255, 218, 0.2) 0%, transparent 70%);
  opacity: 0;
  pointer-events: none;
}

@keyframes inputRipple {
  0% {
    transform: translateX(-50%) scale(0);
    opacity: 0.5;
  }
  100% {
    transform: translateX(-50%) scale(2);
    opacity: 0;
  }
}

.validation-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.input-field.valid .validation-icon {
  opacity: 1;
}

.input-field.error input {
  border-color: #ff4757 !important;
  color: #ff4757;
}

.input-field.error .input-icon {
  color: #ff4757;
}

/* Button ripple effect */
.btn {
  position: relative;
  overflow: hidden;
}

.btn-ripple {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.7) 0%, transparent 70%);
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}

@keyframes btnRipple {
  0% {
    transform: scale(0);
    opacity: 0.5;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

/* Social buttons styling */
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  background-color: var(--btn-secondary-bg);
  border: 1px solid var(--input-border);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  width: 48%;
}

.social-btn i {
  margin-right: 10px;
  font-size: 18px;
}

.social-btn.google i {
  color: var(--google-color);
}

.social-btn.linkedin i {
  color: #0077B5;
}

.social-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.social-btn:hover .social-hover {
  transform: translateX(100%);
}

/* Divider styling */
.divider {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  font-size: 14px;
  margin: 25px 0;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: var(--input-border);
}

.divider span {
  padding: 0 15px;
}

/* Agreement checkbox */
.agreement {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.agreement input[type="checkbox"] {
  margin-right: 10px;
  margin-top: 3px;
}

.agreement label {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.4;
}

.agreement a {
  color: var(--text-accent);
  text-decoration: none;
  position: relative;
}

.agreement a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--text-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.agreement a:hover::after {
  transform: scaleX(1);
}

/* Animation for key press */
.key-animation {
  position: relative;
  overflow: hidden;
}

@keyframes keyPress {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(2px);
  }
  100% {
    transform: translateY(0);
  }
}

.key-animation:hover {
  animation: keyPress 0.3s ease;
}

/* Shake animation for error */
.shake {
  animation: shakeError 0.82s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shakeError {
  10%, 90% {
    transform: translate3d(-1px, 0, 0);
  }
  
  20%, 80% {
    transform: translate3d(2px, 0, 0);
  }

  30%, 50%, 70% {
    transform: translate3d(-4px, 0, 0);
  }

  40%, 60% {
    transform: translate3d(4px, 0, 0);
  }
}

/* Glitch effect for headings */
.glitch {
  position: relative;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
  background: var(--bg-dark);
}

.glitch::before {
  clip: rect(44px, 450px, 56px, 0);
  left: 1px;
  text-shadow: -1px 0 var(--primary);
  animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
  clip: rect(44px, 450px, 56px, 0);
  left: -1px;
  text-shadow: 1px 0 var(--secondary);
  animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
  0% {
    clip: rect(70px, 9999px, 12px, 0);
  }
  5% {
    clip: rect(29px, 9999px, 49px, 0);
  }
  10% {
    clip: rect(45px, 9999px, 88px, 0);
  }
  15% {
    clip: rect(47px, 9999px, 24px, 0);
  }
  20% {
    clip: rect(61px, 9999px, 26px, 0);
  }
  25% {
    clip: rect(2px, 9999px, 48px, 0);
  }
  30% {
    clip: rect(8px, 9999px, 27px, 0);
  }
  35% {
    clip: rect(85px, 9999px, 54px, 0);
  }
  40% {
    clip: rect(6px, 9999px, 47px, 0);
  }
  45% {
    clip: rect(67px, 9999px, 45px, 0);
  }
  50% {
    clip: rect(84px, 9999px, 25px, 0);
  }
  55% {
    clip: rect(14px, 9999px, 68px, 0);
  }
  60% {
    clip: rect(16px, 9999px, 3px, 0);
  }
  65% {
    clip: rect(23px, 9999px, 31px, 0);
  }
  70% {
    clip: rect(56px, 9999px, 71px, 0);
  }
  75% {
    clip: rect(38px, 9999px, 19px, 0);
  }
  80% {
    clip: rect(44px, 9999px, 31px, 0);
  }
  85% {
    clip: rect(16px, 9999px, 94px, 0);
  }
  90% {
    clip: rect(66px, 9999px, 98px, 0);
  }
  95% {
    clip: rect(88px, 9999px, 43px, 0);
  }
  100% {
    clip: rect(67px, 9999px, 11px, 0);
  }
}

@keyframes glitch-anim2 {
  0% {
    clip: rect(67px, 9999px, 41px, 0);
  }
  5% {
    clip: rect(44px, 9999px, 56px, 0);
  }
  10% {
    clip: rect(2px, 9999px, 37px, 0);
  }
  15% {
    clip: rect(31px, 9999px, 61px, 0);
  }
  20% {
    clip: rect(89px, 9999px, 38px, 0);
  }
  25% {
    clip: rect(2px, 9999px, 99px, 0);
  }
  30% {
    clip: rect(94px, 9999px, 48px, 0);
  }
  35% {
    clip: rect(59px, 9999px, 28px, 0);
  }
  40% {
    clip: rect(86px, 9999px, 62px, 0);
  }
  45% {
    clip: rect(25px, 9999px, 89px, 0);
  }
  50% {
    clip: rect(85px, 9999px, 9px, 0);
  }
  55% {
    clip: rect(57px, 9999px, 80px, 0);
  }
  60% {
    clip: rect(47px, 9999px, 10px, 0);
  }
  65% {
    clip: rect(1px, 9999px, 24px, 0);
  }
  70% {
    clip: rect(17px, 9999px, 44px, 0);
  }
  75% {
    clip: rect(87px, 9999px, 71px, 0);
  }
  80% {
    clip: rect(40px, 9999px, 80px, 0);
  }
  85% {
    clip: rect(100px, 9999px, 7px, 0);
  }
  90% {
    clip: rect(37px, 9999px, 71px, 0);
  }
  95% {
    clip: rect(29px, 9999px, 14px, 0);
  }
  100% {
    clip: rect(19px, 9999px, 64px, 0);
  }
}

/* Logo styling */
.logo-link {
  position: absolute;
  top: 30px;
  left: 30px;
  z-index: 10;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.logo-link:hover {
  opacity: 1;
}

.logo img {
  height: 70px;
  width: auto;
  object-fit: contain;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .auth-container {
    width: 100%;
  }
  
  .form-panel {
    width: 90%;
    max-width: 460px;
  }
  
  .logo-link {
    top: 20px;
    left: 20px;
  }
  
  .logo img {
    height: 50px;
  }
  
  .glitch::before,
  .glitch::after {
    display: none;
  }
}

/* Fix existing auth container width */
.auth-container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  position: relative;
}

.form-panel {
  width: 90%;
  max-width: 460px;
  background-color: rgba(10, 10, 10, 0.8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
  backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-panel:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.form-content {
  padding: 40px;
  position: relative;
  z-index: 1;
}

/* Social providers container */
.social-providers {
  /* Remove this section */
}

/* Existing element overrides */
input[type="text"],
input[type="email"],
input[type="password"] {
  padding: 15px 45px 15px 40px;
}

.input-field::before {
  background: linear-gradient(90deg, var(--input-border), transparent);
}

.input-field:focus-within::before {
  background: linear-gradient(90deg, var(--primary), transparent);
}

.btn-primary {
  background-image: linear-gradient(90deg, var(--primary), var(--secondary));
}

.btn-primary:hover {
  background-image: linear-gradient(90deg, var(--secondary), var(--primary));
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
}
