* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a0d2e 50%, #2d1b4e 100%);
  background-attachment: fixed;
  color: #ffffff;
  overflow-x: hidden;
  min-height: 100vh;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.navbar {
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(155, 138, 251, 0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 15px 0;
}

.navbar-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.logo a {
  font-size: 1.8rem;
  font-weight: bold;
  text-decoration: none;
  background: linear-gradient(135deg, #9b8afb 0%, #c9b3ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
  0%,
  100% {
    filter: drop-shadow(0 0 10px rgba(155, 138, 251, 0.5));
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(155, 138, 251, 0.8));
  }
}

.menu-toggle {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger .bar {
  width: 25px;
  height: 3px;
  background: #9b8afb;
  border-radius: 3px;
  transition: 0.3s;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-menu a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s;
  position: relative;
  padding: 5px 0;
}

.mobile-nav-extras {
  display: none;
  width: 100%;
  padding-top: 8px;
  border-top: 1px solid rgba(155, 138, 251, 0.06);
}

.mobile-nav-extras .search-container {
  width: 100%;
}

.mobile-nav-extras .cta-buttons {
  width: 100%;
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.mobile-nav-extras .cta-buttons .btn {
  flex: 1;
  width: auto;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #9b8afb;
  transition: width 0.3s;
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.search-container {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  background: rgba(155, 138, 251, 0.1);
  border: 1px solid rgba(155, 138, 251, 0.3);
  border-radius: 20px;
  padding: 8px 40px 8px 15px;
  color: #ffffff;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  width: 200px;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.search-input:focus {
  border-color: #9b8afb;
  box-shadow: 0 0 10px rgba(155, 138, 251, 0.3);
}

.search-btn {
  position: absolute;
  right: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
}

.search-btn img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
  opacity: 0.7;
  transition: opacity 0.3s;
}

.search-btn:hover img {
  opacity: 1;
}

.cta-buttons {
  display: flex;
  gap: 10px;
}

.btn {
  padding: 10px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  font-family: inherit;
  display: inline-block;
}

.btn-secondary {
  background: transparent;
  border: 1px solid rgba(155, 138, 251, 0.5);
  color: #ffffff;
}

.btn-secondary:hover {
  border-color: #9b8afb;
  background: rgba(155, 138, 251, 0.1);
}

.btn-primary {
  background: linear-gradient(135deg, #9b8afb 0%, #7a68d6 100%);
  color: white;
  box-shadow: 0 5px 15px rgba(155, 138, 251, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(155, 138, 251, 0.4);
}

.btn-primary.active {
  background: linear-gradient(135deg, #7a68d6 0%, #9b8afb 100%);
}

/* Auth Section */
.auth-section {
  padding: 60px 0;
  min-height: calc(100vh - 100px);
}

.auth-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  background: rgba(10, 10, 10, 0.5);
  border: 1px solid rgba(155, 138, 251, 0.2);
  border-radius: 20px;
  padding: 50px;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.auth-container::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(155, 138, 251, 0.05) 0%,
    transparent 70%
  );
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.auth-content {
  position: relative;
  z-index: 1;
}

.auth-content h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  background: linear-gradient(135deg, #ffffff 0%, #9b8afb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-content > p {
  color: #b8b8b8;
  margin-bottom: 30px;
  line-height: 1.6;
}

/* Form Styles */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  color: #9b8afb;
  font-size: 0.95rem;
  font-weight: 500;
}

.input-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-wrapper img.input-icon {
  position: absolute;
  left: 15px;
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
  opacity: 0.5;
  pointer-events: none;
}

.input-icon-wrapper input {
  width: 100%;
  padding: 12px 40px 12px 45px;
  background: rgba(155, 138, 251, 0.05);
  border: 1px solid rgba(155, 138, 251, 0.3);
  border-radius: 10px;
  color: #ffffff;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s;
}

.input-icon-wrapper input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.input-icon-wrapper input:focus {
  border-color: #9b8afb;
  box-shadow: 0 0 15px rgba(155, 138, 251, 0.2);
  background: rgba(155, 138, 251, 0.08);
}

.validation-icon {
  position: absolute;
  right: 15px;
  width: 20px;
  height: 20px;
  display: none;
  pointer-events: none;
}

.validation-icon.valid {
  filter: brightness(0) saturate(100%) invert(60%) sepia(53%) saturate(474%)
    hue-rotate(77deg) brightness(98%) contrast(91%);
}

.validation-icon.invalid {
  filter: brightness(0) saturate(100%) invert(37%) sepia(93%) saturate(4176%)
    hue-rotate(346deg) brightness(95%) contrast(97%);
}

.input-icon-wrapper input:valid ~ .validation-icon.valid {
  display: block;
}

.input-icon-wrapper
  input:invalid:not(:placeholder-shown)
  ~ .validation-icon.invalid {
  display: block;
}

.validation-message {
  display: none;
  color: #ff4444;
  font-size: 0.85rem;
  margin-top: 5px;
}

.input-icon-wrapper
  input:invalid:not(:placeholder-shown)
  ~ .validation-message {
  display: block;
}

/* Password Toggle */
.password-toggle {
  position: absolute;
  right: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  z-index: 1;
}

.password-toggle img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
  opacity: 0.5;
  transition: opacity 0.3s;
}

.password-toggle:hover img {
  opacity: 0.8;
}

/* Password Strength */
.password-strength {
  margin-top: 10px;
}

.strength-meter {
  display: flex;
  gap: 5px;
  margin-bottom: 8px;
}

.strength-segment {
  flex: 1;
  height: 4px;
  background: rgba(155, 138, 251, 0.2);
  border-radius: 2px;
  transition: background 0.3s;
}

.strength-segment.active {
  background: #9b8afb;
}

.strength-text {
  font-size: 0.85rem;
  color: #b8b8b8;
}

.strength-value {
  color: #9b8afb;
  font-weight: 500;
}

/* Checkbox */
.checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checkbox-wrapper input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #9b8afb;
}

.checkbox-wrapper label {
  color: #b8b8b8;
  font-size: 0.95rem;
  cursor: pointer;
  line-height: 1.5;
}

.checkbox-wrapper a {
  color: #9b8afb;
  text-decoration: none;
  transition: color 0.3s;
}

.checkbox-wrapper a:hover {
  color: #c9b3ff;
  text-decoration: underline;
}

.btn-full {
  width: 100%;
  padding: 15px;
  font-size: 1.05rem;
  margin-top: 10px;
}

/* Auth Divider */
.auth-divider {
  display: flex;
  align-items: center;
  margin: 30px 0;
  color: #b8b8b8;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(155, 138, 251, 0.2);
}

.auth-divider span {
  padding: 0 15px;
  font-size: 0.9rem;
}

/* Social Auth */
.social-auth {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 15px;
  background: rgba(155, 138, 251, 0.05);
  border: 1px solid rgba(155, 138, 251, 0.3);
  color: #ffffff;
  border-radius: 10px;
  font-size: 0.95rem;
  transition: all 0.3s;
}

.btn-social img {
  width: 20px;
  height: 20px;
}

.btn-social:hover {
  background: rgba(155, 138, 251, 0.1);
  border-color: #9b8afb;
  transform: translateY(-2px);
}

.auth-footer {
  text-align: center;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid rgba(155, 138, 251, 0.2);
}

.auth-footer p {
  color: #b8b8b8;
}

.auth-footer a {
  color: #9b8afb;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.auth-footer a:hover {
  color: #c9b3ff;
  text-decoration: underline;
}

/* Auth Image Section */
.auth-image {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.auth-image > img {
  width: 100%;
  max-width: 400px;
  border-radius: 15px;
  border: 2px solid rgba(155, 138, 251, 0.3);
  box-shadow: 0 20px 60px rgba(155, 138, 251, 0.2);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Footer */
.footer {
  background: rgba(10, 10, 10, 0.8);
  border-top: 1px solid rgba(155, 138, 251, 0.2);
  padding: 60px 0 30px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h3 {
  font-size: 1.5rem;
  background: linear-gradient(135deg, #9b8afb 0%, #c9b3ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 15px;
}

.footer-col h4 {
  color: #9b8afb;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.footer-col p {
  color: #b8b8b8;
  line-height: 1.6;
  margin-bottom: 20px;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(155, 138, 251, 0.1);
  border: 1px solid rgba(155, 138, 251, 0.3);
  border-radius: 50%;
  transition: all 0.3s;
}

.social-icons img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.social-icons a:hover {
  background: rgba(155, 138, 251, 0.2);
  border-color: #9b8afb;
  transform: translateY(-3px);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #b8b8b8;
  text-decoration: none;
  transition: color 0.3s;
  display: inline-block;
}

.footer-col ul li a:hover {
  color: #9b8afb;
  transform: translateX(5px);
}

.footer-col address {
  font-style: normal;
}

.footer-col address p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-col address img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

.newsletter-form {
  display: flex;
  gap: 10px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 15px;
  background: rgba(155, 138, 251, 0.05);
  border: 1px solid rgba(155, 138, 251, 0.3);
  border-radius: 8px;
  color: #ffffff;
  outline: none;
  transition: all 0.3s;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.newsletter-form input:focus {
  border-color: #9b8afb;
  box-shadow: 0 0 10px rgba(155, 138, 251, 0.2);
}

.newsletter-form button {
  padding: 12px 25px;
  white-space: nowrap;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(155, 138, 251, 0.1);
  color: #b8b8b8;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .auth-container {
    grid-template-columns: 1fr;
    padding: 40px;
  }

  .auth-image {
    order: -1;
  }

  .social-auth {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .hamburger {
    display: flex !important;
  }
  .nav-actions {
    display: none !important;
  }
  .nav-menu {
    display: flex !important;
  }
  .mobile-nav-extras {
    display: none;
  }
  .menu-toggle:checked ~ .nav-menu {
    transform: translateY(0) scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }
  .menu-toggle:checked ~ .nav-menu .mobile-nav-extras {
    display: block;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    flex-direction: column;
    padding: 20px;
    border-top: 1px solid rgba(155, 138, 251, 0.2);
    transform: translateX(-100%);
    transition: transform 0.3s;
  }

  .menu-toggle:checked ~ .nav-menu {
    transform: translateX(0);
  }

  .menu-toggle:checked ~ .hamburger .bar:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }

  .menu-toggle:checked ~ .hamburger .bar:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle:checked ~ .hamburger .bar:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
  }

  .nav-actions {
    flex-direction: column;
    width: 100%;
    gap: 15px;
  }

  .search-container {
    width: 100%;
  }

  .search-input {
    width: 100%;
  }

  .cta-buttons {
    width: 100%;
    flex-direction: column;
  }

  .cta-buttons .btn {
    width: 100%;
    text-align: center;
  }

  .auth-content h1 {
    font-size: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .auth-container {
    padding: 30px 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-form {
    flex-direction: column;
  }
}
