@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

body {
  min-height: 100vh;
  background: linear-gradient(180deg, #f4f7fb 0%, #eef3f9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  color: #102742;
}

.auth-shell {
  width: 100%;
  max-width: 980px;
}

.auth-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  background: #fff;
  border: 1px solid rgba(16, 39, 66, 0.12);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 44px rgba(13, 31, 56, 0.12);
}

.auth-side {
  position: relative;
  background: url('../login/frontImg1.jpg') center center / cover no-repeat;
  min-height: 520px;
}

.auth-side::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 25, 45, 0.78) 0%, rgba(8, 25, 45, 0.55) 55%, rgba(8, 25, 45, 0.74) 100%);
}

.auth-side-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 44px 42px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 18px;
}

.auth-side-inner h1 {
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #fff;
}

.auth-side-inner p {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.8;
  max-width: 360px;
  font-size: 0.98rem;
}

.auth-side-meta {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.auth-side-meta span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.76);
}

.auth-side-meta i {
  color: rgba(255, 255, 255, 0.9);
}

.auth-form {
  padding: 44px 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-form-header {
  margin-bottom: 26px;
}

.auth-form-header img {
  height: 44px;
  width: auto;
  margin-bottom: 18px;
}

.auth-form-header h2 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: #102742;
}

.auth-form-header p {
  margin: 0;
  color: #60748c;
  line-height: 1.7;
  font-size: 0.92rem;
}

.auth-alert {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f3f7fc;
  border: 1px solid rgba(23, 59, 102, 0.12);
  color: #173b66;
  font-size: 0.9rem;
}

.auth-field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.auth-field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #102742;
}

.auth-input {
  position: relative;
}

.auth-input i {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: #6d7f95;
  font-size: 0.95rem;
}

.auth-input input {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(16, 39, 66, 0.14);
  background: #fff;
  padding: 0 14px 0 40px;
  font-size: 0.95rem;
  color: #102742;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.auth-input input:focus {
  border-color: rgba(23, 59, 102, 0.5);
  box-shadow: 0 0 0 4px rgba(23, 59, 102, 0.12);
}

.auth-captcha {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 12px;
  align-items: center;
}

.auth-captcha img {
  width: 116px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(16, 39, 66, 0.12);
  object-fit: cover;
}

.auth-actions {
  margin-top: 18px;
}

.auth-actions button {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  border: none;
  background: #173b66;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.auth-actions button:hover {
  background: #102742;
  transform: translateY(-1px);
}

.auth-links {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.88rem;
}

.auth-links a {
  color: #173b66;
  text-decoration: none;
  font-weight: 600;
}

.auth-links a:hover {
  text-decoration: underline;
}

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

  .auth-side {
    min-height: 280px;
  }
}

@media (max-width: 480px) {
  .auth-form {
    padding: 32px 22px;
  }

  .auth-side-inner {
    padding: 32px 22px;
  }

  .auth-captcha {
    grid-template-columns: 1fr;
  }

  .auth-captcha img {
    width: 100%;
    height: auto;
  }
}
