@font-face {
  font-family: 'BPGNino';
  src: url('../../../main/fonts/bpg_nino_mtavruli_bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'BPGArial';
  src: url('../../../main/fonts/bpg_arial_2009.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

body.portal-login-page {
  --brand: #00aeed;
  --brand-light: #0057b7;
  --brand-glow: rgba(0, 174, 237, 0.18);
  --bg: #060f1a;
  --bg2: #0a1628;
  --bg3: #11233c;
  --surface: rgba(255, 255, 255, 0.06);
  --surface2: rgba(255, 255, 255, 0.1);
  --border: rgba(0, 174, 237, 0.14);
  --text: #e8f4fd;
  --text-muted: #7ab8d4;
  --text-dim: #3d6b88;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  font-family: 'BPGArial', 'Inter', sans-serif;
  background: linear-gradient(180deg, #06101c 0%, #09192d 100%);
  color: var(--text);
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

.portal-login-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.portal-login-grid {
  position: absolute;
  inset: 0;
  display: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 92%);
}

.portal-login-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: none;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.portal-login-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.52;
}

.portal-login-canvas-glow {
  pointer-events: none;
  opacity: 0.34;
}

.portal-login-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  z-index: 0;
}

.portal-login-blob-1 {
  width: 520px;
  height: 520px;
  right: -140px;
  top: -180px;
  background: radial-gradient(circle, rgba(0, 174, 237, 0.3) 0%, transparent 72%);
}

.portal-login-blob-2 {
  width: 460px;
  height: 460px;
  left: -120px;
  bottom: -220px;
  background: radial-gradient(circle, rgba(0, 87, 183, 0.24) 0%, transparent 72%);
}

.portal-login-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 440px);
  gap: 44px;
  align-items: center;
}

.portal-login-story {
  padding: 28px 0;
}

.portal-login-brand {
  display: flex;
  align-items: center;
  margin-bottom: 28px;
}

.portal-login-brand-logo {
  width: min(240px, 60vw);
  max-width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.22));
}

.portal-login-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-family: 'BPGNino', 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.portal-login-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 8px rgba(74, 222, 128, 0.08);
}

.portal-login-title {
  font-family: 'BPGNino', 'Inter', sans-serif;
  font-size: clamp(22px, 2.8vw, 38px);
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: #fff;
  max-width: 620px;
  margin-bottom: 14px;
  text-wrap: balance;
}

.portal-login-text {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(232, 244, 253, 0.78);
  max-width: 590px;
  margin-bottom: 28px;
}

.portal-login-points-area {
  position: relative;
  max-width: 590px;
  margin-top: 10px;
  padding: 10px 0 6px;
  isolation: isolate;
}

.portal-login-points-area::before {
  content: "";
  position: absolute;
  inset: -12px -18px -10px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(6, 15, 26, 0.94) 0%, rgba(8, 18, 31, 0.88) 100%);
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.14);
  z-index: 0;
}

.portal-login-points {
  display: grid;
  gap: 14px;
  max-width: 560px;
  position: relative;
  z-index: 1;
}

.portal-login-point {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.portal-login-point-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #00aeed 0%, #0057b7 100%);
  color: #fff;
  font-family: 'BPGNino', 'Inter', sans-serif;
  font-size: 13px;
  box-shadow: 0 10px 20px rgba(0, 174, 237, 0.22);
}

.portal-login-point strong {
  display: block;
  font-family: 'BPGNino', 'Inter', sans-serif;
  font-size: 15px;
  color: #fff;
  margin-bottom: 4px;
}

.portal-login-point span:last-child {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}

.portal-login-back,
.portal-login-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #b9ddf0;
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s, transform 0.2s;
}

.portal-login-back {
  margin-top: 24px;
  position: relative;
  z-index: 1;
}

.portal-login-back:hover,
.portal-login-footer-link:hover {
  color: #fff;
  transform: translateX(-2px);
}

.portal-login-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin-left: auto;
  padding: 34px 34px 28px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 26%, rgba(255, 255, 255, 0.02) 100%),
    rgba(7, 18, 31, 0.78);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
}

.portal-login-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #00aeed 0%, #0057b7 100%);
}

.portal-login-card-top {
  margin-bottom: 22px;
}

.portal-login-card-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 174, 237, 0.12);
  border: 1px solid rgba(0, 174, 237, 0.22);
  color: #7dd3fc;
  font-family: 'BPGNino', 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.portal-login-card-title {
  font-family: 'BPGNino', 'Inter', sans-serif;
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.1;
  color: #fff;
  margin-bottom: 8px;
}

.portal-login-card-subtitle {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-muted);
}

.portal-login-alert {
  margin-bottom: 18px;
  border-radius: 16px;
  background: rgba(224, 82, 82, 0.12);
  border-color: rgba(224, 82, 82, 0.24);
  color: #ffc1c1;
}

.portal-login-form .form-group {
  margin-bottom: 20px;
}

.portal-login-form .form-label {
  font-family: 'BPGNino', 'Inter', sans-serif;
  font-size: 11px;
  color: #9ecce3;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.portal-login-form .form-control {
  background: rgba(6, 15, 26, 0.92);
  border: 1px solid rgba(0, 174, 237, 0.34);
  border-radius: 16px;
  padding: 15px 16px;
  color: #fff;
  font-size: 15px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.portal-login-form .form-control:focus {
  border-color: #24c6ff;
  box-shadow: 0 0 0 4px rgba(0, 174, 237, 0.18), 0 10px 24px rgba(0, 87, 183, 0.16);
}

.portal-login-form .form-control::placeholder {
  color: rgba(184, 221, 240, 0.34);
}

.portal-login-form .form-control:-webkit-autofill,
.portal-login-form .form-control:-webkit-autofill:hover,
.portal-login-form .form-control:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  -webkit-box-shadow: 0 0 0 1000px rgba(6, 15, 26, 0.92) inset;
  transition: background-color 9999s ease-in-out 0s;
}

.login-submit {
  margin-top: 8px;
  min-height: 56px;
  border-radius: 18px;
  border: none;
  background: linear-gradient(135deg, #00aeed 0%, #0057b7 100%);
  color: #fff;
  font-family: 'BPGNino', 'Inter', sans-serif;
  font-size: 15px;
  box-shadow: 0 16px 30px rgba(0, 174, 237, 0.24);
}

.login-submit:hover {
  background: linear-gradient(135deg, #13b8f0 0%, #0a63ca 100%);
}

.portal-login-card-footer {
  margin-top: 20px;
  text-align: center;
}

.portal-login-footer-link {
  display: none;
  justify-content: center;
}

@media (max-width: 960px) {
  .portal-login-grid {
    display: block;
  }

  .portal-login-stage {
    display: none;
  }

  .portal-login-shell {
    width: min(720px, calc(100% - 28px));
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 24px 0 32px;
  }

  .portal-login-story {
    text-align: center;
    padding: 0;
  }

  .portal-login-brand {
    justify-content: center;
    width: 100%;
  }

  .portal-login-title,
  .portal-login-text {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  .portal-login-title {
    max-width: 100%;
  }

  .portal-login-points {
    max-width: none;
  }

  .portal-login-points-area {
    max-width: none;
  }

  .portal-login-point {
    text-align: left;
  }

  .portal-login-back {
    display: none;
  }

  .portal-login-card {
    margin: 0 auto;
    max-width: 620px;
  }

  .portal-login-footer-link {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .portal-login-shell {
    width: calc(100% - 20px);
    padding: 18px 0 24px;
  }

  .portal-login-brand {
    margin-top: 14px;
    margin-bottom: 24px;
  }

  .portal-login-brand-logo {
    width: calc(100vw - 36px);
  }

  .portal-login-title {
    font-size: 24px;
    max-width: 100%;
  }

  .portal-login-text {
    font-size: 14px;
    line-height: 1.75;
  }

  .portal-login-point {
    padding: 14px;
    border-radius: 18px;
    text-align: left;
  }

  .portal-login-card {
    padding: 28px 20px 24px;
    border-radius: 24px;
  }

  .portal-login-card-badge {
    margin-bottom: 14px;
  }

  .portal-login-card-title {
    font-size: 28px;
  }

  .portal-login-card-subtitle {
    font-size: 13px;
  }

  .portal-login-form .form-control {
    padding: 14px 15px;
    border-radius: 14px;
    font-size: 14px;
  }

  .login-submit {
    min-height: 52px;
    border-radius: 16px;
  }
}
