/* Global Styles & Variables */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary-color: #7f56da;
  --primary-glow: rgba(127, 86, 218, 0.4);
  --text-color: #ffffff;
  --secondary-text-color: #a0a0a0;
  --font-family-body: "Poppins", sans-serif;
  --background-color: #05050e;
  --surface-color: rgba(255, 255, 255, 0.03);
  --glass-border: 1px solid rgba(255, 255, 255, 0.06);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.3);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: var(--font-family-body);
  background-color: var(--background-color);
  background-image:
    radial-gradient(
      circle at 10% 20%,
      rgba(127, 86, 218, 0.15) 0%,
      transparent 20%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(51, 181, 229, 0.1) 0%,
      transparent 20%
    );
  color: var(--text-color);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 6vw, 80px);
  z-index: 1000;
  background: rgba(5, 5, 14, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: var(--glass-border);
}

.header-logo a img {
  height: 42px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(127, 86, 218, 0.5));
}

/* Auth Main */
main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px 40px;
}

.form-container {
  width: 100%;
  max-width: 420px;
}

.form {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.02)
  );
  border: var(--glass-border);
  border-radius: 28px;
  backdrop-filter: blur(20px);
  width: 100%;
  box-shadow: var(--shadow-lg);
  animation: fadeInDown 0.6s ease;
  padding: 50px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-header {
  text-align: center;
  margin-bottom: 10px;
}

.auth-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.gradient-text {
  background: linear-gradient(135deg, #fff 0%, var(--primary-color) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
}

.auth-subtitle {
  color: var(--secondary-text-color);
  font-size: 1rem;
  font-weight: 400;
}

.svg {
  fill: var(--text-color);
  margin-right: 15px;
  transition: var(--transition);
}

.inputForm {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  min-height: 64px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  transition: var(--transition);
}

.inputForm:focus-within {
  border-color: var(--primary-color);
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 0 3px rgba(127, 86, 218, 0.1);
}

.inputForm:focus-within .svg {
  color: var(--primary-color);
  fill: var(--primary-color);
}

.input {
  margin-left: 15px;
  border-radius: 10px;
  border: none;
  width: 85%;
  height: 100%;
  background: transparent;
  outline: none;
  color: var(--text-color);
  font-size: 0.95rem;
  font-weight: 600;
  caret-color: var(--text-color);
  font-family: inherit;
}

::placeholder {
  font-family: var(--font-family-body);
  color: var(--secondary-text-color);
  font-size: 0.95rem;
  opacity: 1;
  font-weight: 400;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text-color) !important;
  -webkit-box-shadow: 0 0 0 1000px var(--background-color) inset !important;
  box-shadow: 0 0 0 1000px var(--background-color) inset !important;
  transition: background-color 5000s ease-in-out 0s;
  caret-color: var(--text-color);
}

.button-submit {
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 14px;
  padding: 16px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.button-submit:hover {
  background: var(--primary-glow);
}

.button-submit i {
  font-size: 1.2rem;
}

.button-submit .bx-spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

footer {
  padding: 40px 20px;
  text-align: center;
  margin-top: auto;
}

.footer-divider {
  width: 100%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.06);
  margin-bottom: 25px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copyright {
  color: var(--secondary-text-color);
  font-size: 1rem;
  font-weight: 400;
}

.footer-legal-links a {
  color: var(--secondary-text-color);
  text-decoration: none;
  font-weight: 400;
  font-size: 1rem;
  transition: 0.3s;
}

.footer-legal-links a:hover {
  color: var(--text-color);
}

@media (max-width: 768px) {
  .form {
    padding: 35px 25px;
  }

  .footer-content {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .form {
    padding: 30px 20px;
  }
}
