#screen-auth {
  background: #f6f7fb;
  color: #172033;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 480px);
}

.auth-hero {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px clamp(28px, 6vw, 84px);
}

.auth-logo {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 24px;
}

.auth-title {
  font-size: 2.3rem;
  line-height: 1.08;
  font-weight: 800;
  margin-bottom: 12px;
}

.auth-copy {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  line-height: 1.7;
}

.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
  background: #fff;
  box-shadow: -16px 0 48px rgba(15, 23, 42, 0.08);
}

.auth-panel h1 {
  font-size: 1.55rem;
  line-height: 1.2;
  color: #111827;
  margin-bottom: 8px;
}

.auth-panel p {
  color: #6b7280;
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 22px;
}

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

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.auth-field label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #374151;
}

.auth-field input {
  width: 100%;
  border: 1.5px solid #dfe3ec;
  border-radius: 10px;
  padding: 12px 13px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-field input:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.auth-primary,
.auth-secondary {
  border: none;
  border-radius: 12px;
  padding: 13px 16px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s, background 0.15s;
}

.auth-primary {
  background: #4f46e5;
  color: #fff;
}

.auth-primary:hover,
.auth-secondary:hover {
  transform: translateY(-1px);
}

.auth-primary:disabled,
.auth-secondary:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
}

.auth-secondary {
  background: #eef2ff;
  color: #3730a3;
}

.auth-status {
  min-height: 22px;
  color: #6b7280;
  font-size: 0.86rem;
  line-height: 1.5;
}

.auth-status.error {
  color: #b91c1c;
}

.auth-status.success {
  color: #15803d;
}

.auth-denied {
  display: none;
  border: 1px solid #fecaca;
  background: #fff1f2;
  color: #991b1b;
  border-radius: 12px;
  padding: 14px;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-top: 16px;
}

.auth-denied.active {
  display: block;
}

.home-account {
  position: absolute;
  top: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.82rem;
}

.home-account button {
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  font-weight: 700;
}

.home-account button:hover {
  background: rgba(255, 255, 255, 0.24);
}

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

  .auth-hero {
    min-height: 34vh;
    padding: 36px 24px;
  }

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

  .auth-panel {
    min-height: 66vh;
    padding: 32px 22px;
    box-shadow: none;
  }

  .home-account {
    position: static;
    margin-bottom: 20px;
    justify-content: center;
    flex-wrap: wrap;
  }
}

