.auth-page {
  min-height: calc(100vh - var(--header-h, 76px));
  width: 100%;
  max-width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow-x: hidden;
}

.auth-visual {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0d4a83 0%, #063a6c 50%, #042949 100%);
}

.auth-visual-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.auth-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  contain: layout style paint;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
  animation: auth-float 28s ease-in-out infinite;
}

.shape-1 {
  width: 400px;
  height: 400px;
  top: -100px;
  right: -100px;
  animation-duration: 32s;
}

.shape-2 {
  width: 300px;
  height: 300px;
  bottom: -80px;
  left: -80px;
  animation-duration: 28s;
  animation-delay: -9s;
}

.shape-3 {
  width: 200px;
  height: 200px;
  top: 40%;
  left: 30%;
  animation-duration: 36s;
  animation-delay: -18s;
}

@keyframes auth-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(18px, -14px, 0); }
}

.auth-visual-content {
  position: relative;
  z-index: 2;
  padding: 60px 50px;
  color: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-logo-badge {
  width: 72px;
  height: 72px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-visual-content h1 {
  margin: 0 0 16px;
  font-size: 42px;
  line-height: 1.15;
  letter-spacing: -1.5px;
  font-weight: 800;
}

.auth-visual-content p {
  margin: 0 0 32px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 420px;
  line-height: 1.6;
}

.auth-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.auth-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.auth-feature svg {
  flex-shrink: 0;
}

.auth-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  background: #fafbfc;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(6, 58, 108, 0.08), 0 4px 12px rgba(6, 58, 108, 0.04);
  border: 1px solid #e8eef3;
}

.auth-card-header {
  margin-bottom: 32px;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.auth-brand svg {
  flex-shrink: 0;
}

.auth-brand-text {
  display: flex;
  flex-direction: column;
}

.auth-brand-text span:first-child {
  font-size: 22px;
  font-weight: 800;
  color: #063a6c;
  letter-spacing: -0.5px;
  line-height: 1;
}

.auth-brand-text span:last-child {
  font-size: 14px;
  font-weight: 500;
  color: #647a91;
  margin-top: 2px;
}

.auth-card h2 {
  margin: 0 0 8px;
  color: #063a6c;
  font-size: 28px;
  letter-spacing: -1px;
  font-weight: 800;
}

.auth-card > p {
  margin: 0 0 28px;
  color: #647a91;
  font-size: 14px;
}

.auth-form-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #344d66;
  font-size: 13px;
  font-weight: 700;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 16px;
  color: #94a7b6;
  pointer-events: none;
}

.input-wrapper input {
  width: 100%;
  height: 50px;
  padding: 0 48px 0 46px;
  border: 2px solid #e0e8ef;
  border-radius: 12px;
  font-size: 15px;
  color: #112e4e;
  background: #fafbfc;
  transition: all 0.2s ease;
  outline: none;
  box-sizing: border-box;
}

.input-wrapper input:focus {
  border-color: #0d4a83;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(13, 74, 131, 0.1);
}

.auth-page .pass-toggle {
  position: absolute;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #647a91;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}

.auth-page .pass-toggle:hover {
  background: #f0f4f7;
  color: #0d4a83;
}

.auth-submit {
  width: 100%;
  margin-top: 8px;
  height: 54px;
  font-size: 15px;
  color: #fff;
  border-radius: 12px;
  background: linear-gradient(135deg, #0d4a83 0%, #063a6c 100%);
  box-shadow: 0 6px 20px rgba(13, 74, 131, 0.3);
  border: none;
  cursor: pointer;
  font-weight: 700;
}

.auth-links {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid #e8eef3;
  text-align: center;
}

.auth-links p {
  margin: 0 0 14px;
  color: #647a91;
  font-size: 14px;
}

.auth-page .alert {
  padding: 16px 18px;
  border-radius: 12px;
  margin-bottom: 24px;
  font-size: 13px;
}

.auth-page .alert-success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.auth-page .alert-danger,
.auth-page .alert-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

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

  .auth-visual {
    min-height: 320px;
  }

  .auth-visual-content {
    padding: 40px 30px;
  }

  .auth-visual-content h1 {
    font-size: 36px;
  }

  .auth-form {
    padding: 40px 24px;
  }

  .auth-card {
    max-width: 480px;
  }
}

@media (max-width: 570px) {
  .auth-visual {
    min-height: 260px;
  }

  .auth-visual-content {
    padding: 28px 20px;
  }

  .auth-visual-content h1 {
    font-size: 26px;
    letter-spacing: -1px;
  }

  .auth-visual-content p {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .auth-features {
    flex-direction: column;
  }

  .auth-feature {
    width: 100%;
    justify-content: flex-start;
    padding: 10px 16px;
    font-size: 13px;
  }

  .auth-form {
    padding: 24px 16px 32px;
  }

  .auth-card {
    padding: 24px 18px;
    border-radius: 16px;
  }

  .auth-card h2 {
    font-size: 24px;
  }

  .input-wrapper input {
    height: 48px;
    font-size: 16px;
  }

  .auth-submit {
    height: 50px;
  }
}
