﻿.auth-bg {
  background:
    radial-gradient(circle at 18% 12%, rgba(11, 91, 211, 0.12), transparent 24%),
    linear-gradient(180deg, #f7faff 0%, #edf3fb 100%);
}

.auth-shell {
  min-height: 100vh;
  padding: 0;
}

.auth-layout {
  position: relative;
  min-height: 100vh;
  max-width: 1440px;
  margin: 0 auto;
  padding: 40px 56px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.auth-layout::before {
  content: "";
  position: absolute;
  right: -16%;
  bottom: -16%;
  width: 60%;
  height: 80%;
  background:
    radial-gradient(circle at 45% 45%, rgba(17, 91, 211, 0.08), transparent 62%),
    repeating-radial-gradient(circle at 50% 50%, rgba(133, 170, 226, 0.12) 0 1px, transparent 1px 18px);
  transform: rotate(-12deg);
  pointer-events: none;
}

.auth-layout::after {
  content: "";
  position: absolute;
  left: 8%;
  bottom: -22%;
  width: 58%;
  height: 50%;
  border-radius: 50%;
  border: 1px solid rgba(110, 159, 226, 0.18);
  box-shadow:
    0 0 0 24px rgba(110, 159, 226, 0.05),
    0 0 0 48px rgba(110, 159, 226, 0.04),
    0 0 0 72px rgba(110, 159, 226, 0.03);
  pointer-events: none;
}

.auth-card-wrap {
  position: relative;
  z-index: 1;
}

.auth-brand {
  display: flex;
  justify-content: center;
}

.auth-brand-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.auth-brand-logo {
  display: none;
  width: auto;
  max-width: min(100%, 320px);
  max-height: 140px;
  object-fit: contain;
}

.auth-brand-fallback-lockup {
  display: none;
  align-items: center;
  justify-content: center;
}

.auth-card-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 420px;
}

.auth-brand-inline {
  width: 100%;
  min-height: auto;
}

.auth-card {
  width: 100%;
  padding: 28px 28px 22px;
  border-radius: 22px;
  border: 1px solid #d8e4f5;
  box-shadow: 0 20px 48px rgba(17, 38, 73, 0.08);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
}

.auth-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.auth-card h2 {
  margin: 0 0 10px;
  font-size: 22px;
  color: #1b2d51;
}

.form-grid {
  margin-top: 14px;
  display: grid;
  gap: 14px;
}

.field span {
  display: inline-block;
  margin-bottom: 2px;
}

.field input {
  height: 50px;
  border-radius: 14px;
  background: #fff;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 52px;
}

.password-toggle-icon {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  color: #607391;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.password-toggle-icon:hover {
  color: #0b5bd3;
}

.password-toggle-icon svg {
  width: 21px;
  height: 21px;
}

.auth-submit-btn {
  margin-top: 8px;
  min-height: 50px;
  font-size: 16px;
  border-radius: 14px;
}

.field input {
  height: 52px;
  border-radius: 12px;
  border: 1px solid #d6dde8;
  padding: 0 14px;
  transition: all 0.2s ease;
}

.field input:focus {
  border-color: #0b5bd3;
  box-shadow: 0 0 0 3px rgba(11, 91, 211, 0.15);
  outline: none;
}

@media (max-width: 1180px) {
  .auth-layout {
    padding: 28px 24px;
  }

  .auth-brand {
    width: 100%;
  }

  .auth-card-wrap {
    max-width: 420px;
  }
}

@media (max-width: 760px) {
  .auth-layout {
    min-height: 100vh;
    padding: 24px 18px;
  }

  .auth-layout::before,
  .auth-layout::after {
    display: none;
  }

  .auth-brand {
    min-height: auto;
  }

  .auth-brand-logo {
    max-width: min(100%, 260px);
    max-height: 104px;
  }

  .auth-card {
    max-width: none;
    padding: 22px 18px 20px;
  }
}
