:root {
  --blue-primary: #4f93e0;

  --text-main: #f8fafc;
	--text-muted: #cbd5e1;
  
  --bg-dark: #07111f;
  --card-bg: rgba(10, 19, 33, 0.72);
  --glass-border: rgba(255, 255, 255, 0.15)
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  min-height: 100vh;
  background: var(--bg-dark);
  color: white;
  overflow-x: hidden;
}

.btn-primary {
  font-family: "Inter", sans-serif;
}

.auth-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at top left, rgba(103, 168, 255, 0.3), transparent 35%),
    radial-gradient(circle at bottom right, rgba(0, 255, 200, 0.15), transparent 30%),
    linear-gradient(145deg, #08101c 0%, #102440 100%);
}

.auth-card {
  width: 100%;
  max-width: 520px;
  padding: 48px;
  border-radius: 32px;
  background: var(--card-bg);
  backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.auth-header {
  text-align: center;
  margin-bottom: 40px;
}

.auth-badge {
  font-family: 'Exo 2', sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--blue-primary);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.auth-header h1 {
  font-family: 'Exo 2', sans-serif;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  line-height: 1;
  font-weight: 800;
  margin-bottom: 16px;
}

.auth-subtitle {
  color: var(--text-main);
  line-height: 1.7;
  font-size: 15px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.grid-fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.field {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  transition: all 0.25s ease;
}

.field:focus-within {
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 4px rgba(103, 168, 255, 0.12);
}

.field i {
  position: absolute;
  left: 18px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 15px;
}

.field input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  padding: 18px 18px 18px 52px;
  color: var(--text-main);
  font-size: 15px;
}

.field input:hover, .field input:focus, .field input:focus-visible {
  color: var(--text-main);
}

.field input:-webkit-autofill, .field input:-webkit-autofill:hover, .field input:-webkit-autofill:focus, .field input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--text-main) !important;
}

.field input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.toggle-icon {
  left: -15px !important;
}

.password-field .toggle-password {
  position: absolute;
  right: 16px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.field-footer {
  display: flex;
  justify-content: flex-end;
}

.forgot-link {
  color: var(--blue-primary);
  font-size: 13px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.forgot-link:hover {
  opacity: 0.8;
}

.divider {
  position: relative;
  text-align: center;
  margin: 32px 0 24px;
}

.divider::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 50%;
  height: 1px;
  background: var(--glass-border);
}

.divider span {
  position: relative;
  padding: 0 18px;
  background: var(--card-bg);
  color: var(--text-muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.social-login {
  display: flex;
  justify-content: center;
}

.google-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  text-decoration: none;
  color: white;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.25s ease;
}

.google-button:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-2px);
}

.google-button svg {
  width: 18px;
  height: 18px;
}

.switch-auth {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
}

.switch-auth strong {
  color: var(--blue-primary);
}

.hidden {
  display: none;
}

/* intl-tel-input */
.iti {
  width: 100%;
}

.iti__selected-country {
  padding-left: 16px;
  padding-right: 10px;
}

.iti__country-list {
  background: #101c2f;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  color: white;
}

.iti__search-input {
  background: rgba(255,255,255,0.05);
  border: none;
  color: white;
}

.iti__country:hover {
  background: rgba(255,255,255,0.08);
}

.iti__selected-dial-code {
  font-size: 15px;
}
/*
.iti input.iti__tel-input, .iti input.iti__tel-input[type=text], .iti input.iti__tel-input[type=tel] {
  padding-left: 110px !important;
}
*/
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus,
input:-internal-autofill-previewed,
input:-internal-autofill-selected {
  transition: background-color 600000s ease-in-out 0s;
  -webkit-text-fill-color: white !important;
}

.error-message {
  margin-bottom: 24px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 87, 87, 0.12);
  border: 1px solid rgba(255, 87, 87, 0.25);
  color: #ffb4b4;
  font-size: 14px;
}

.success-message {
  margin-bottom: 24px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #a7f3c0;
  font-size: 14px;
}

.error-number {
  border-color: rgba(255, 87, 87, 0.7) !important;
}

@media (max-width: 768px) {
  .auth-card {
    padding: 32px 22px;
    border-radius: 26px;
  }

  .auth-header h1 {
    font-size: 2.4rem;
  }

  .grid-fields {
    grid-template-columns: 1fr;
  }

  .field input {
    padding: 16px 16px 16px 48px;
  }
}

@media (max-width: 480px) {
  .auth-page {
    padding: 20px 14px;
  }

  .auth-card {
    padding: 26px 18px;
  }

  .auth-header {
    margin-bottom: 28px;
  }

  .auth-header h1 {
    font-size: 2rem;
  }

  .primary-button,
  .google-button {
    padding: 15px;
  }
}