.auth-wrapper {
  min-height: 100vh;
  width: 100%;
  display: flex;
  overflow: hidden;
  background: #F6F8FB;
}

.auth-left {
  width: 50%;
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-image: url('/images/amatotech.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.auth-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30,47,130,0.92) 0%, rgba(14,27,66,0.94) 50%, rgba(10,13,45,0.96) 100%);
  z-index: 0;
}

.auth-left-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2.5rem;
  max-width: 520px;
  animation: fadeInUp 1s ease-out;
}

.auth-logo-wrapper {
  margin-bottom: 1.75rem;
  animation: fadeInDown 1s ease-out 0.2s both;
}

.auth-logo {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  padding: 10px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 2px solid rgba(255,255,255,0.3);
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
  animation: logoFloat 7s ease-in-out infinite;
}

.auth-brand-title {
  font-size: 3rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 0.75rem 0;
  letter-spacing: -1px;
  text-shadow: 0 6px 24px rgba(0,0,0,0.35);
  line-height: 1.1;
}

.auth-brand-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.8);
  margin: 0 0 2.5rem 0;
  letter-spacing: 0.5px;
  font-weight: 400;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.auth-brand-actions {
  display: flex;
  justify-content: center;
  animation: fadeInUp 0.9s ease-out 0.35s both;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: 14px;
  border: 2px solid rgba(255,255,255,0.6);
  background: transparent;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.08);
  letter-spacing: 0.3px;
  text-decoration: none;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.9);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}

.btn-outline:active {
  transform: translateY(0);
}

.auth-right {
  width: 50%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  background: #F6F8FB;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 30px 80px rgba(30,47,130,0.12), 0 0 0 1px rgba(255,255,255,0.5) inset;
  padding: 48px 40px;
  animation: authEnter 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.auth-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 40px 100px rgba(30,47,130,0.18), 0 0 0 1px rgba(255,255,255,0.6) inset;
}

.auth-view {
  animation: fadeIn 0.55s ease-out;
}

.auth-header {
  text-align: center;
  margin-bottom: 2.25rem;
}

.auth-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1E2F82;
  margin: 0 0 0.4rem 0;
  letter-spacing: -0.4px;
}

.auth-header p {
  color: #5B6573;
  margin: 0;
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 1.25rem;
  animation: fadeInUp 0.7s ease-out both;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.18s; }
.form-group:nth-child(3) { animation-delay: 0.26s; }
.form-group:nth-child(4) { animation-delay: 0.34s; }

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
  font-size: 0.88rem;
  color: #404B5A;
  letter-spacing: 0.2px;
}

.form-input {
  width: 100%;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1.5px solid #E9EDF2;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.95rem;
  color: #202B38;
  outline: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.form-input:focus {
  border-color: #2E4DA7;
  box-shadow: 0 0 0 4px rgba(46,77,167,0.10), 0 4px 16px rgba(46,77,167,0.08);
  background: rgba(255,255,255,0.95);
}

.form-input::placeholder {
  color: #AAB4C3;
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.75rem;
  animation: fadeInUp 0.7s ease-out 0.4s both;
}

.form-alert {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  animation: fadeInUp 0.4s ease-out both;
}

.form-alert-error {
  background: rgba(220, 53, 69, 0.1);
  color: #B3202F;
  border: 1px solid rgba(220, 53, 69, 0.25);
}

.form-alert-success {
  background: rgba(40, 167, 69, 0.1);
  color: #1E7A34;
  border: 1px solid rgba(40, 167, 69, 0.25);
}

.btn-primary {
  width: 100%;
  padding: 15px 20px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #1E2F82 0%, #2E4DA7 100%);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 26px rgba(30,47,130,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 0.3px;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(30,47,130,0.45);
  background: linear-gradient(135deg, #171F66 0%, #1E2F82 100%);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-ghost {
  width: 100%;
  padding: 13px 20px;
  border-radius: 14px;
  border: 1.5px solid transparent;
  background: transparent;
  color: #1E2F82;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-ghost:hover {
  background: #EEF2FF;
  border-color: #DCE6FF;
}

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes authEnter {
  from { opacity: 0; transform: translateY(30px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

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

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

@media (max-width: 1024px) {
  .auth-wrapper {
    flex-direction: column;
  }

  .auth-left {
    width: 100%;
    min-height: 45vh;
  }

  .auth-brand-title {
    font-size: 2.2rem;
  }

  .auth-right {
    width: 100%;
    min-height: auto;
    padding: 1.5rem 1rem;
  }

  .auth-card {
    padding: 32px 24px;
  }
}

@media (max-width: 640px) {
  .auth-left {
    min-height: 35vh;
    padding: 1.5rem;
  }

  .auth-left-inner {
    padding: 1.5rem;
  }

  .auth-logo {
    width: 110px;
    height: 110px;
  }

  .auth-brand-title {
    font-size: 1.8rem;
  }

  .auth-brand-subtitle {
    font-size: 1rem;
  }

  .auth-right {
    padding: 1rem 0.5rem;
  }

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

  .auth-header h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 400px) {
  .auth-right {
    padding: 0.75rem 0.375rem;
  }

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

@media (min-width: 1920px) {
  .auth-left {
    width: 50%;
  }

  .auth-right {
    width: 50%;
    padding: 3rem;
  }

  .auth-card {
    max-width: 520px;
    padding: 56px 44px;
  }

  .auth-left-inner {
    max-width: 600px;
  }

  .auth-brand-title {
    font-size: 3.2rem;
  }

  .auth-logo {
    width: 160px;
    height: 160px;
  }

  .form-input {
    padding: 15px 18px;
    font-size: 1.05rem;
  }

  .btn-primary {
    padding: 17px 22px;
    font-size: 1.05rem;
  }
}
