@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

::selection {
  background: rgba(249, 115, 22, 0.35);
  color: #ffffff;
}

::-moz-selection {
  background: rgba(249, 115, 22, 0.35);
  color: #ffffff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #080808;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.login-wrapper {
  display: grid;
  grid-template-columns: 1fr 410px;
  width: 100%;
  max-width: 980px;
  min-height: 560px;
  max-height: 620px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.07),
    0 28px 72px rgba(0, 0, 0, 0.72),
    0 0 110px rgba(249, 115, 22, 0.08);
}

.login-left {
  position: relative;
  min-height: 100%;
  background: #06080f;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-left__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}

.login-left--fallback::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 35% 20%, #3730a3 0%, #1e1b4b 38%, #0b0d13 100%);
}

.login-left__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 58%, rgba(12, 6, 2, 0.64) 100%);
}

.login-right {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px 30px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(ellipse at 40% 10%, #2b1400 0%, #170b00 45%, #0e0e0e 100%);
}

.login-right::before {
  content: '';
  position: absolute;
  top: -70px;
  right: -70px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.14) 0%, transparent 68%);
  pointer-events: none;
}

.login-form-container {
  width: 100%;
  max-width: 318px;
  position: relative;
  z-index: 1;
}

.login-logo {
  margin-bottom: 28px;
}

.login-logo__img {
  height: 42px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.login-logo__fallback {
  display: none;
  align-items: center;
  gap: 10px;
}

.login-logo__icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f97316, #a855f7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.4);
  flex-shrink: 0;
}

.login-logo__name {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #fff;
}

.login-logo__sub {
  display: block;
  margin-top: 1px;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
}

.login-heading {
  margin-bottom: 24px;
}

.login-heading__title {
  margin-bottom: 6px;
  font-size: 1.72rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #fff;
}

.login-heading__sub {
  font-size: 0.83rem;
  font-weight: 400;
  line-height: 1.5;
  color: #7c8ea2;
}

.login-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(239, 68, 68, 0.22);
  border-left: 3px solid #ef4444;
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  font-size: 0.82rem;
  line-height: 1.4;
}

.login-field {
  margin-bottom: 14px;
}

.login-field__label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.71rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
}

.login-field__wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.login-field__icon {
  position: absolute;
  left: 12px;
  color: #475569;
  pointer-events: none;
  transition: color 0.18s;
}

.login-input {
  width: 100%;
  padding: 11px 40px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #f1f5f9;
  font-size: 0.87rem;
  font-weight: 500;
  line-height: 1.35;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
}

.login-input::placeholder {
  color: #3d4f63;
}

.login-input:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(249, 115, 22, 0.64);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}

.login-field__wrap:focus-within .login-field__icon {
  color: #f97316;
}

.login-field__toggle {
  position: absolute;
  right: 11px;
  border: none;
  background: none;
  color: #475569;
  padding: 4px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: color 0.18s;
}

.login-field__toggle:hover {
  color: #94a3b8;
}

.login-btn {
  width: 100%;
  margin-top: 20px;
  padding: 12px 22px;
  border: none;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 18px rgba(249, 115, 22, 0.38);
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(249, 115, 22, 0.5);
}

.login-btn:active {
  transform: translateY(0);
}

.login-footer {
  margin-top: 22px;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #2a3545;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 980px) {
  .login-body {
    padding: 14px;
  }

  .login-wrapper {
    grid-template-columns: 1fr;
    min-height: auto;
    max-height: none;
  }

  .login-left {
    min-height: 220px;
  }

  .login-right {
    padding: 24px 18px;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
}
