* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background: #10162d;
}

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(87, 113, 255, 0.22), transparent 32%),
    radial-gradient(circle at 85% 80%, rgba(111, 76, 255, 0.2), transparent 30%),
    linear-gradient(135deg, #10162d 0%, #192447 48%, #29245b 100%);
}

.login-page::before,
.login-page::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(1px);
}

.login-page::before {
  width: 380px;
  height: 380px;
  top: -130px;
  left: 38%;
  background: rgba(91, 75, 219, 0.13);
}

.login-page::after {
  width: 300px;
  height: 300px;
  bottom: -120px;
  left: 5%;
  background: rgba(74, 144, 226, 0.12);
}

.login-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 70px 12%;
  color: #ffffff;
}

.login-brand h2 {
  margin-bottom: 50px;
  font-size: 29px;
  font-weight: 800;
  letter-spacing: -0.7px;
}

.login-hero h1 {
  margin-bottom: 25px;
  font-size: clamp(42px, 4.5vw, 62px);
  line-height: 1.12;
  letter-spacing: -2px;
}

.login-hero p {
  max-width: 500px;
  color: #c7cde2;
  font-size: 16px;
  line-height: 1.8;
}

.login-form-section {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 45px;
}

.login-card {
  width: 100%;
  max-width: 450px;
  padding: 42px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    0 25px 70px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.login-card h2 {
  margin-bottom: 9px;
  color: #ffffff;
  font-size: 30px;
  font-weight: 750;
  letter-spacing: -0.8px;
}

.login-subtitle {
  margin-bottom: 30px;
  color: #c4c9dd;
  font-size: 14px;
  line-height: 1.6;
}

.form-group {
  margin-bottom: 21px;
}

.form-group label {
  display: block;
  margin-bottom: 9px;
  color: #e5e8f5;
  font-size: 13px;
  font-weight: 600;
}

.form-group input {
  width: 100%;
  min-height: 49px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 11px;
  outline: none;
  background: rgba(12, 18, 40, 0.28);
  color: #ffffff;
  font-size: 14px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.form-group input::placeholder {
  color: #a6aec8;
}

.form-group input:focus {
  border-color: #a49aff;
  background: rgba(12, 18, 40, 0.42);
  box-shadow: 0 0 0 4px rgba(125, 111, 255, 0.15);
}

.form-group input.input-error {
  border-color: #ff7b89;
  background: rgba(255, 90, 110, 0.08);
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.12);
}

.form-group input.input-success {
  border-color: #65d6a2;
  background: rgba(101, 214, 162, 0.08);
}

.form-group input.input-error:focus {
  border-color: #ff7b89;
  box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.15);
}

.form-error {
  display: block;
  margin-top: 6px;
  color: #ff9ca7;
  font-size: 12px;
  line-height: 1.4;
}

.password-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.password-label a {
  color: #b8b0ff;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.password-label a:hover {
  color: #ffffff;
}

.password-wrapper {
  position: relative;
  width: 100%;
}

.password-wrapper input {
  padding-right: 50px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border: none;
  background: transparent;
  color: #b9bfd5;
  font-size: 17px;
  cursor: pointer;
  transform: translateY(-50%);
}

.password-toggle:hover {
  color: #ffffff;
}

.password-toggle:focus {
  outline: 2px solid #a49aff;
  outline-offset: 2px;
  border-radius: 5px;
}

.remember-section {
  margin-bottom: 22px;
}

.remember-section label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #c8cde0;
  font-size: 13px;
  cursor: pointer;
}

.remember-section input {
  width: 16px;
  height: 16px;
  accent-color: #8174ff;
  cursor: pointer;
}

.login-button {
  width: 100%;
  min-height: 49px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 11px;
  background: linear-gradient(135deg, #7163f0, #5546d8);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(83, 69, 216, 0.25);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.login-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(83, 69, 216, 0.35);
  filter: brightness(1.08);
}

.login-button:active {
  transform: translateY(0);
}

.login-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.divider {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 25px 0;
  color: #aeb4cb;
  font-size: 12px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.google-btn {
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.08);
  color: #f4f5fb;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.google-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.14);
}

.google-icon {
  color: #8eb8ff;
  font-size: 20px;
  font-weight: 800;
}

.register-text {
  margin-top: 25px;
  color: #c4c9dd;
  font-size: 13px;
  text-align: center;
}

.register-text a {
  color: #b8b0ff;
  font-weight: 700;
  text-decoration: none;
}

.register-text a:hover {
  color: #ffffff;
}

.auth-footer {
  background: #11162b;
  color: #ffffff;
  padding: 60px 8% 25px;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  gap: 60px;
  padding-bottom: 40px;
}

.footer-brand {
  max-width: 320px;
}

.footer-brand h3 {
  margin-bottom: 15px;
  font-size: 26px;
}

.footer-brand p {
  color: #b8bfd4;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  gap: 70px;
}

.footer-links h4 {
  margin-bottom: 18px;
}

.footer-links a {
  display: block;
  margin-bottom: 12px;
  color: #b8bfd4;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
}

.footer-bottom p {
  color: #9a9fb5;
  font-size: 14px;
}

@media (max-width: 900px) {
  .login-page {
    grid-template-columns: 1fr;
  }

  .login-content {
    padding: 55px 10% 25px;
  }

  .login-brand h2 {
    margin-bottom: 30px;
  }

  .login-hero h1 {
    font-size: 43px;
  }

  .login-hero p {
    font-size: 14px;
  }

  .login-form-section {
    padding: 35px 25px 55px;
  }

  .login-card {
    max-width: 500px;
  }
}

@media (max-width: 600px) {
  .login-content {
    padding: 35px 25px 15px;
  }

  .login-brand h2 {
    margin-bottom: 25px;
    font-size: 25px;
  }

  .login-hero h1 {
    font-size: 36px;
    letter-spacing: -1px;
  }

  .login-hero p {
    font-size: 13px;
    line-height: 1.7;
  }

  .login-form-section {
    padding: 25px 16px 40px;
  }

  .login-card {
    padding: 30px 23px;
    border-radius: 20px;
  }

  .login-card h2 {
    font-size: 26px;
  }

  .footer-container {
    flex-direction: column;
    gap: 40px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}