* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #4fc9b7;
  --primary-dark: #3eb5a4;
  --primary-hover: #5dd4c1;
  --bg-black: #0a0a0a;
  --bg-dark: #0d1117;
  --bg-card: #161616;
  --text-white: #ffffff;
  --text-gray: #8b949e;
  --text-light: #c9d1d9;
  --border-color: rgba(255, 255, 255, 0.08);
  --error-color: #ef4444;
  --error-bg: rgba(239, 68, 68, 0.1);
  --google-color: #ea4335;
  --github-color: #ffffff;
  --apple-color: #ffffff;
  --passkey-color: #8b949e;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-black);
  color: var(--text-white);
  min-height: 100vh;
  overflow-x: hidden;
}

.auth-container {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}

.auth-background {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("/img/content.png");
  background-size: cover;
  background-position: center;
  overflow: hidden;
  padding: 20px;
  margin: 15px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-background::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(10, 10, 10, 0.4) 100%
  );
  z-index: 1;
}

.gradient-blob {
  display: none;
}

.blob-1 {
  display: none;
}

.blob-2 {
  display: none;
}

.backdrop {
  display: none;
}

.auth-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px;
  background: var(--bg-black);
  position: relative;
  z-index: 10;
}

.auth-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  width: 100%;
  max-width: 480px;
}

.mobile-logo {
  display: none;
}

.mobile-logo-text {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: 2px;
}

.auth-header {
  margin-bottom: 32px;
}

.auth-header.center {
  text-align: center;
}

.auth-icon {
  display: none;
}

.auth-header h1 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 0;
  color: var(--text-white);
  text-align: left;
}

.subtitle {
  margin-top: 10px;
  font-size: 14px;
  color: #666;
  font-weight: normal;
}

.error-message {
  background: var(--error-bg);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.error-message i {
  color: var(--error-color);
  font-size: 18px;
}

.error-message span {
  color: var(--error-color);
  font-size: 14px;
}

.error-text {
  color: var(--error-color) !important;
  font-size: 16px !important;
  margin-top: 8px;
}

.redirect-text {
  color: var(--text-gray) !important;
  font-size: 14px !important;
  margin-top: 8px;
}

.auth-form {
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  color: var(--text-white);
  font-size: 13px;
  font-weight: 400;
  margin-bottom: 10px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper i {
  display: none;
}

.input-wrapper input {
  width: 100%;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: var(--text-white);
  font-size: 15px;
  transition: all 0.2s;
  outline: none;
}

.input-wrapper input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.input-wrapper input:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(79, 201, 183, 0.1);
}

.toggle-password {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-gray);
  cursor: pointer;
  padding: 8px;
  transition: color 0.2s;
}

.toggle-password:hover {
  color: var(--text-white);
}

.toggle-password i {
  display: block !important;
  font-size: 16px;
}

.forgot-password {
  text-align: right;
  margin-top: 8px;
  margin-bottom: 20px;
}

.forgot-password a {
  color: var(--text-gray);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s;
}

.forgot-password a:hover {
  color: var(--text-white);
}

.btn-primary {
  width: 100%;
  padding: 18px;
  background: var(--primary-color);
  border: none;
  border-radius: 10px;
  color: #000000;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 201, 183, 0.3);
}

.btn-primary:focus {
  outline: none;
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0, 0, 0, 0.3);
  border-top-color: #000000;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner-large {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(77, 208, 225, 0.3);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.divider {
  position: relative;
  text-align: center;
  margin: 24px 0;
}

.divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.divider span {
  position: relative;
  background: var(--bg-black);
  padding: 0 16px;
  color: var(--text-gray);
  font-size: 12px;
  text-transform: uppercase;
}

.oauth-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.btn-oauth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: var(--text-white);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-oauth:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.btn-oauth i {
  font-size: 18px;
}

.btn-passkey i {
  color: var(--passkey-color);
}

.btn-google i {
  color: var(--google-color);
}

.btn-apple i {
  color: var(--apple-color);
}

.btn-github i {
  color: var(--github-color);
}

.account-link {
  text-align: center;
  margin-top: 24px;
  padding-top: 0;
  border-top: none;
}

.account-link p {
  color: var(--text-gray);
  font-size: 14px;
  display: block !important;
}

.account-link a {
  color: var(--text-white);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  margin-left: 4px;
}

.account-link a:hover {
  color: var(--primary-color);
}

.footer-links {
  text-align: center;
  margin-top: 32px;
  padding-top: 24px;
}

.footer-links p {
  color: var(--text-gray);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.footer-links a {
  color: var(--text-gray);
  text-decoration: none;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover {
  color: var(--text-white);
}

.footer-links i {
  font-size: 14px;
}

/* Hero Section Styles */
.hero-content {
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  text-align: center;
  max-width: 600px;
  width: 100%;
  padding: 0 40px;
}

.hero-image {
  max-width: 100%;
  height: auto;
  margin-bottom: 40px;
}

.hero-title {
  font-size: 32px;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 16px;
  line-height: 1.3;
}

.hero-description {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto;
}

.hero-badges {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
  z-index: 3;
}

.badge {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 140px;
  height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.badge-title {
  font-size: 11px;
  color: var(--text-gray);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.badge-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-white);
  line-height: 1.3;
}

@media (max-width: 968px) {
  .auth-container {
    grid-template-columns: 1fr;
  }

  .auth-background {
    display: none;
  }

  .auth-content {
    padding: 40px 20px;
  }

  .mobile-logo {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-black);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    text-align: center;
    z-index: 100;
  }

  .auth-content {
    padding: 90px 20px 40px;
  }

  .auth-header h1 {
    font-size: 28px;
  }

  .form-group {
    margin-bottom: 14px;
  }

  .account-link {
    margin-top: 16px;
    padding-top: 16px;
  }

  .account-link p {
    font-size: 13px;
  }

  .footer-links {
    margin-top: 24px;
    padding-top: 20px;
  }

  .footer-links p {
    font-size: 12px;
    flex-wrap: wrap;
    gap: 4px;
  }

  .footer-links i {
    font-size: 14px;
  }
}

@media (max-width: 640px) {
  .auth-header h1 {
    font-size: 24px;
  }
}
