/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #a78bfa;
  --primary-dark: #8b5cf6;
  --primary-light: rgba(167, 139, 250, 0.1);
  --primary-border: rgba(167, 139, 250, 0.3);
  --background: #0f0f1a;
  --background-light: rgba(15, 15, 26, 0.6);
  --background-lighter: rgba(15, 15, 26, 0.4);
  --foreground: #fff;
  --foreground-muted: rgba(255, 255, 255, 0.7);
  --foreground-subtle: rgba(255, 255, 255, 0.5);
  --border: rgba(255, 255, 255, 0.1);
  --success: #4caf50;
  --success-light: rgba(76, 175, 80, 0.1);
  --success-border: rgba(76, 175, 80, 0.3);
  --warning: #ff9800;
  --warning-light: rgba(255, 152, 0, 0.1);
  --warning-border: rgba(255, 152, 0, 0.3);
  --danger: #f44336;
  --danger-light: rgba(244, 67, 54, 0.1);
  --danger-border: rgba(244, 67, 54, 0.3);
  --info: #2196f3;
  --info-light: rgba(33, 150, 243, 0.1);
  --info-border: rgba(33, 150, 243, 0.3);
  --google: #db4437;
  --facebook: #4267b2;
  --twitter: #1da1f2;
  --github: #333;
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --border-radius-lg: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  --transition: all 0.3s ease;
}

html {
  overflow-x: hidden;
  width: 100%;
  position: relative;
  -ms-overflow-style: none; /* Internet Explorer and Edge */
  scrollbar-width: none; /* Firefox */
}

body {
  overflow-x: hidden;
  overflow-y: auto;
  width: 100%;
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans",
    "Helvetica Neue", sans-serif;
  color: var(--foreground);
  line-height: 1.6;
  -ms-overflow-style: none; /* Internet Explorer and Edge */
  scrollbar-width: none; /* Firefox */
  background-color: var(--background);
}

/* Hide scrollbars for Chrome, Safari and Opera */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: var(--transition);
}

a:hover {
  text-decoration: underline;
}

/* Auth Container */
.auth-container {
  display: flex;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

/* Background with animated shapes */
.auth-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--background);
  background-image: radial-gradient(circle at 20% 30%, rgba(167, 139, 250, 0.1) 0%, transparent 20%),
    radial-gradient(circle at 80% 70%, rgba(167, 139, 250, 0.1) 0%, transparent 20%),
    linear-gradient(rgba(10, 10, 20, 0.8), rgba(10, 10, 20, 0.8));
  background-size: cover;
  background-position: center;
  z-index: -1;
}

.auth-background::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.3) 0%, transparent 100%);
  pointer-events: none;
}

.auth-shapes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}

/* Add CSS variables for the shape animations */
.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.2;
  animation: float 15s infinite ease-in-out;
  /* Add CSS variables for random movement */
  --random-x: 0vw;
  --random-y: 0vh;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) scale(1) translateX(0);
  }
  50% {
    transform: translateY(-20px) scale(1.05) translateX(var(--random-x));
  }
  25%,
  75% {
    transform: translateY(var(--random-y)) scale(1.02) translateX(calc(var(--random-x) / 2));
  }
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: var(--primary);
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}

.shape-2 {
  width: 400px;
  height: 400px;
  background: var(--primary-dark);
  bottom: -150px;
  right: -150px;
  animation-delay: -5s;
}

.shape-3 {
  width: 200px;
  height: 200px;
  background: var(--info);
  top: 30%;
  right: 10%;
  animation-delay: -2s;
}

.shape-4 {
  width: 250px;
  height: 250px;
  background: var(--primary);
  bottom: 20%;
  left: 10%;
  animation-delay: -7s;
}

/* Auth Content */
.auth-content {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  width: 100%;
  padding: 40px 20px;
  z-index: 1;
}

.auth-card {
  background: rgba(15, 15, 26, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-lg);
  width: 100%;
  max-width: 500px;
  padding: 40px;
  box-shadow: var(--shadow);
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Auth Header */
.auth-header {
  text-align: center;
  margin-bottom: 30px;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.logo svg {
  margin-right: 10px;
}

.logo span {
  font-size: 24px;
  font-weight: 700;
  color: var(--foreground);
}

.auth-header h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-header p {
  color: var(--foreground-muted);
  font-size: 16px;
}

/* Auth Form */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--foreground-muted);
}

.input-with-icon {
  position: relative;
  width: 100%;
}

.input-with-icon i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--foreground-subtle);
}

.input-with-icon input {
  width: 100%;
  height: 50px;
  background: rgba(15, 15, 26, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-sm);
  padding: 0 15px 0 45px;
  color: var(--foreground);
  font-size: 16px;
  transition: var(--transition);
}

.input-with-icon input:focus {
  outline: none;
  border-color: var(--primary-border);
  box-shadow: 0 0 0 2px rgba(167, 139, 250, 0.2);
}

.input-with-icon input::placeholder {
  color: var(--foreground-subtle);
}

.toggle-password {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--foreground-subtle);
  cursor: pointer;
  transition: var(--transition);
}

.toggle-password:hover {
  color: var(--primary);
}

/* Password Strength */
.password-strength {
  margin-top: 5px;
}

.strength-meter {
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 5px;
}

.strength-bar {
  height: 100%;
  width: 0;
  background: var(--danger);
  transition: all 0.3s ease;
}

.strength-text {
  font-size: 12px;
  color: var(--foreground-subtle);
}

/* Form Options */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.remember-me,
.terms-checkbox {
  display: flex;
  align-items: center;
}

/* Custom Checkbox */
.checkbox-container {
  display: flex;
  align-items: center;
  position: relative;
  padding-left: 30px;
  cursor: pointer;
  font-size: 14px;
  color: var(--foreground-muted);
  user-select: none;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: rgba(15, 15, 26, 0.6);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: var(--transition);
}

.checkbox-container:hover input ~ .checkmark {
  border-color: var(--primary-border);
}

.checkbox-container input:checked ~ .checkmark {
  background-color: var(--primary);
  border-color: var(--primary);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
  display: block;
}

.checkbox-container .checkmark:after {
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.forgot-password {
  font-size: 14px;
}

/* Auth Button */
.btn-auth {
  width: 100%;
  height: 50px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
  border: none;
  border-radius: 25px;
  color: var(--foreground);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-auth:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.btn-auth:active {
  transform: translateY(0);
}

/* Auth Divider */
.auth-divider {
  display: flex;
  align-items: center;
  margin: 10px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-divider span {
  padding: 0 15px;
  font-size: 14px;
  color: var(--foreground-muted);
}

/* Social Auth */
.social-auth {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 45px;
  background: rgba(15, 15, 26, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-sm);
  color: var(--foreground);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.social-btn:hover {
  transform: translateY(-2px);
}

.social-btn.google:hover {
  background: rgba(219, 68, 55, 0.1);
  border-color: rgba(219, 68, 55, 0.3);
  color: var(--google);
}

.social-btn.facebook:hover {
  background: rgba(66, 103, 178, 0.1);
  border-color: rgba(66, 103, 178, 0.3);
  color: var(--facebook);
}

.social-btn.twitter:hover {
  background: rgba(29, 161, 242, 0.1);
  border-color: rgba(29, 161, 242, 0.3);
  color: var(--twitter);
}

.social-btn.github:hover {
  background: rgba(51, 51, 51, 0.1);
  border-color: rgba(51, 51, 51, 0.3);
  color: var(--github);
}

/* Auth Footer */
.auth-footer {
  text-align: center;
  margin-top: 10px;
  font-size: 14px;
  color: var(--foreground-muted);
}

/* Add these styles for the header, footer, and updated registration form */

/* Header and Footer Styles */
.auth-header-nav {
  background: rgba(15, 15, 26, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 15px 0;
  position: relative;
  z-index: 10;
}

.auth-footer-nav {
  background: rgba(15, 15, 26, 0.9);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  padding: 25px 0 15px; /* Reduced padding */
  position: relative;
  z-index: 10;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.auth-header-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.auth-header-nav .logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.auth-header-nav .logo span {
  margin-left: 10px;
  font-size: 24px;
  font-weight: 700;
  color: var(--foreground);
}

.main-nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
}

.main-nav a {
  color: var(--foreground-muted);
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s ease;
  text-decoration: none;
}

.main-nav a:hover {
  color: var(--primary);
  text-decoration: none;
}

.auth-nav {
  display: flex;
  align-items: center;
}

.btn-outline {
  padding: 8px 20px;
  border: 2px solid var(--primary);
  border-radius: 50px;
  color: var(--foreground);
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--background);
  text-decoration: none;
}

/* Footer Styles */
.footer-content {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px; /* Reduced margin */
}

.footer-logo {
  display: flex;
  align-items: center;
}

.footer-logo span {
  margin-left: 10px;
  font-size: 20px; /* Smaller font size */
  font-weight: 700;
  color: var(--foreground);
}

.footer-links {
  display: flex;
  gap: 40px; /* Reduced gap */
}

.footer-column h3 {
  color: var(--primary);
  font-size: 14px; /* Smaller font size */
  margin-bottom: 12px; /* Reduced margin */
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 6px; /* Reduced margin */
}

.footer-column ul li a {
  color: var(--foreground-muted);
  transition: color 0.3s ease;
  text-decoration: none;
  font-size: 13px; /* Smaller font size */
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  color: var(--foreground-muted);
  font-size: 14px;
}

.footer-social {
  display: flex;
  gap: 20px;
}

.footer-social a {
  color: var(--foreground-muted);
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: var(--primary);
}

/* Updated Registration Form Styles */
.register-card {
  max-width: 800px;
}

.form-section {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.form-section:last-of-type {
  border-bottom: none;
}

.form-section h3 {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--primary);
}

.input-with-icon select {
  width: 100%;
  height: 50px;
  background-color: rgba(15, 15, 26, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-sm);
  padding: 0 15px 0 45px;
  color: var(--foreground);
  font-size: 16px;
  transition: var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255, 255, 255, 0.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
}

.input-with-icon select:focus {
  outline: none;
  border-color: var(--primary-border);
  box-shadow: 0 0 0 2px rgba(167, 139, 250, 0.2);
}

.input-with-icon select option {
  background-color: var(--background);
  color: var(--foreground);
  padding: 10px;
}

/* Add these styles for the phone input with country code selector */
.phone-input-container {
  display: flex;
  align-items: center;
  width: 100%;
  height: 50px;
  background: rgba(15, 15, 26, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-sm);
  padding: 0 15px 0 45px;
  transition: var(--transition);
}

.phone-input-container:focus-within {
  border-color: var(--primary-border);
  box-shadow: 0 0 0 2px rgba(167, 139, 250, 0.2);
}

/* Update the country-code-select class to ensure all numbers are visible */
.country-code-select {
  background: transparent;
  border: none;
  border-right: 1px solid var(--border);
  color: var(--foreground);
  font-size: 14px;
  padding: 0;
  margin-right: 10px;
  height: 30px;
  width: 90px; /* Fixed width */
  min-width: 90px;
  max-width: 100px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 24 24' fill='none' stroke='rgba(255, 255, 255, 0.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  cursor: pointer;
  text-align: center;
  flex-shrink: 0;
  text-overflow: visible;
  white-space: nowrap;
  overflow: visible; /* Ensure text isn't cut off */
  box-sizing: border-box;
  direction: ltr;
}

.country-code-select:focus {
  outline: none;
}

.country-code-select option {
  background-color: var(--background);
  color: var(--foreground);
  padding: 5px;
  font-size: 14px;
}

.phone-number-input {
  background: transparent;
  border: none;
  color: var(--foreground);
  font-size: 16px;
  width: 100%;
  height: 100%;
  padding-left: 0;
}

.phone-number-input:focus {
  outline: none;
}

.phone-number-input::placeholder {
  color: var(--foreground-subtle);
}

/* Adjust the icon position for the phone input */
.phone-input-container .input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--foreground-subtle);
  z-index: 1;
}

/* Add a focused class for styling */
.phone-input-container.focused {
  border-color: var(--primary-border);
  box-shadow: 0 0 0 2px rgba(167, 139, 250, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .footer-content {
    flex-direction: column;
    gap: 30px;
  }

  .footer-links {
    flex-direction: column;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

/* Responsive Styles */
@media (max-width: 576px) {
  .auth-card {
    padding: 30px 20px;
  }

  .form-row {
    flex-direction: column;
  }

  .social-auth {
    grid-template-columns: 1fr;
  }
}

/* Make the auth card wider on larger screens */
@media (min-width: 992px) {
  .auth-card {
    max-width: 550px; /* Slightly wider for login */
  }

  .register-card {
    max-width: 850px; /* Even wider for registration */
  }
}

