* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(135deg, #0f0f2d 0%, #1a1a3e 50%, #0f0f2d 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  padding: 0 20px;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(115, 105, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(67, 56, 202, 0.15) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.auth-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  max-width: 1000px;
  width: 100%;
  position: relative;
  z-index: 1;

  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 50px 60px;
  border-radius: 28px;
  
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 2px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.4s ease;
}

.auth-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 28px;
  padding: 2px;
  background: linear-gradient(135deg, 
    rgba(115, 105, 255, 0.3) 0%, 
    rgba(67, 56, 202, 0.3) 50%, 
    rgba(115, 105, 255, 0.3) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.auth-container:hover::before {
  opacity: 1;
}

.auth-container:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.5),
    0 4px 12px rgba(115, 105, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.auth-image {
  flex: 1;
  display: flex;
  justify-content: center;
  animation: fadeIn 0.9s ease;
  position: relative;
}

.auth-image::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(115, 105, 255, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 3s ease-in-out infinite;
  z-index: -1;
}

.auth-image img {
  width: 280px;
  filter: drop-shadow(0 8px 20px rgba(115, 105, 255, 0.3));
  transition: transform 0.3s ease;
}

.auth-form {
  flex: 1;
  padding-left: 30px;
  animation: fadeIn 1.2s ease;
}

.auth-form h2 {
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 32px;
  color: #ffffff;
  background: linear-gradient(135deg, #ffffff 0%, #b6baff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-form p ,label{
  font-size: 14px;
  color: #c9d2ff;
  margin-bottom: 28px;
  line-height: 1.6;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid rgba(115, 105, 255, 0.3);
  background: rgba(21, 19, 54, 0.6);
  color: #fff;
  border-radius: 14px;
  margin-bottom: 16px;
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
  position: relative;
}

.form-control:focus {
  border-color: #7369ff;
  background: rgba(21, 19, 54, 0.8);
  box-shadow: 
    0 0 0 4px rgba(115, 105, 255, 0.15),
    0 4px 12px rgba(115, 105, 255, 0.2);
  transform: translateY(-2px);
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.btn-primary {
  width: 100%;
  background: linear-gradient(135deg, #4338ca 0%, #5b4bff 100%);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(67, 56, 202, 0.3);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #5b4bff 0%, #7369ff 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(91, 75, 255, 0.4);
}

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

.auth-form a {
  color: #b6baff;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.auth-form a:hover {
  color: #7369ff;
  text-decoration: underline;
}

@keyframes fadeIn {
  from { 
    opacity: 0; 
    transform: translateY(20px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

@keyframes pulse {
  0%, 100% { 
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1); 
  }
  50% { 
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.1); 
  }
}

@media (max-width: 768px) {
  body {
    padding: 80px 15px 40px;
  }

  .auth-container {
    flex-direction: column;
    text-align: center;
    width: 100%;
    padding: 40px 30px;
    gap: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 
      0 8px 32px rgba(0, 0, 0, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }

  .auth-container:hover {
    transform: none;
  }

  .auth-image::before {
    width: 200px;
    height: 200px;
  }

  .auth-image img {
    width: 180px;
  }

  .auth-form {
    padding-left: 0;
    width: 100%;
  }

  .auth-form h2 {
    font-size: 26px;
  }
}

.auth-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 18px 35px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 999;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #ffffff;
}

.auth-logo img {
  width: 110px;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(115, 105, 255, 0.4));
  transition: transform 0.3s ease;
}

.auth-logo img:hover {
  transform: scale(1.05);
}

.menu-toggle {
  font-size: 30px;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.menu-toggle:hover {
  color: #7369ff;
}

.auth-menu {
  position: fixed;
  top: 80px;
  right: 35px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 20px 30px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 1000;
}

.auth-menu.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.auth-menu ul {
  list-style: none;
}

.auth-menu ul li {
  margin: 12px 0;
}

.auth-menu ul li a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
  padding: 8px 12px;
  border-radius: 10px;
  display: inline-block;
  position: relative;
}

.auth-menu ul li a::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #7369ff, #5b4bff);
  transition: width 0.3s ease;
}

.auth-menu ul li a:hover {
  background: rgba(115, 105, 255, 0.15);
  color: #c9d2ff;
  transform: translateX(5px);
}

.auth-menu ul li a:hover::before {
  width: 100%;
}

@media (max-width: 480px) {

  body {
    padding-top: 110px !important;
    padding-bottom: 40px;
  }

  .auth-container {
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 25px 22px !important;
    border-radius: 22px;
    gap: 22px;
    max-width: 380px;
  }

  .auth-image img {
    width: 150px !important;
  }

  .auth-image::before {
    width: 150px;
    height: 150px;
  }

  .auth-form {
    width: 100%;
    padding: 0 !important;
  }

  .auth-form h2 {
    font-size: 22px !important;
  }

  .form-control {
    padding: 12px 16px !important;
    font-size: 13px;
  }

  .btn-primary {
    font-size: 14px;
    padding: 12px !important;
  }
}

