/* ---------------- LOGIN SCREEN ---------------- */
#login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}

@media (max-width: 860px) {
  #login-screen {
    grid-template-columns: 1fr;
  }
  .login-hero {
    min-height: 260px;
  }
}

.login-hero {
  background:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,0.10) 0, transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(255,255,255,0.07) 0, transparent 45%),
    linear-gradient(155deg, var(--red) 0%, var(--red-dark) 100%);
  color: white;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 52px;
  overflow: hidden;
}

.cap-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.14);
}

.ring-top-right {
  width: 340px;
  height: 340px;
  top: -90px;
  right: -90px;
}

.ring-bottom-right {
  width: 180px;
  height: 180px;
  bottom: 40px;
  right: 60px;
}

.ring-bottom-left {
  width: 90px;
  height: 90px;
  bottom: 130px;
  left: 60px;
}

.login-hero .logo-lockup {
  margin-bottom: 26px;
}

.login-hero .logo-word {
  font-size: 16.5px;
  color: white;
}

.login-hero .logo-word small {
  color: rgba(255,255,255,0.75);
}

.login-hero .eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.85;
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FFD874;
}

.hero-title {
  font-size: clamp(34px, 4.6vw, 50px);
  line-height: 1.04;
  margin-top: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-weight: 500;
  font-size: 15px;
  line-height: 1.6;
  max-width: 430px;
  opacity: 0.92;
  margin-top: 16px;
}

.hero-stats {
  display: flex;
  gap: 30px;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
}

.hero-stats div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-stats .num {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 26px;
}

.hero-stats .lbl {
  font-size: 10.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  opacity: 0.8;
}

.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: var(--surface);
}

.login-card {
  width: 100%;
  max-width: 400px;
}

.tab-row {
  display: flex;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 26px;
}

.tab-btn {
  flex: 1;
  background: transparent;
  padding: 9px 0;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--gray);
  transition: border-color .18s ease, color .18s ease, background .18s ease;
  cursor: pointer;
  border: 1.5px solid transparent;
}

.tab-btn.active {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.tab-btn:hover:not(.active) {
  background: transparent;
  border-color: #E4002B;
  color: #E4002B;
}

/* --- Sign in to Console Button (Outline & Text Coke Red on Hover) --- */
#store-login-btn,
#admin-login-btn {
  background: #14161A;
  color: #FFFFFF;
  border: 1.5px solid #14161A;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease, border-color 0.2s ease, color 0.2s ease;
}

#store-login-btn:hover,
#admin-login-btn:hover {
  background: transparent;
  border-color: #E4002B;
  color: #E4002B;
}

#store-login-btn:hover .spinner,
#admin-login-btn:hover .spinner {
  border-color: rgba(228, 0, 43, 0.35);
  border-top-color: #E4002B;
}

#admin-login-form {
  display: none;
}

.role-info {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.role-info-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: var(--ink);
  font-weight: 600;
}

.role-info-row .icon {
  width: 15px;
  height: 15px;
  color: var(--red);
  flex-shrink: 0;
}

.pass-wrap {
  position: relative;
}

.pass-wrap input {
  padding-right: 44px;
}

.pass-toggle {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--gray);
}

.pass-toggle:hover {
  background: var(--bg-2);
  color: var(--ink);
}

.pass-toggle .icon {
  width: 17px;
  height: 17px;
}

.auth-error {
  display: none;
  background: #FDEBEC;
  color: var(--red-dark);
  border: 1px solid #F3C4C9;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 16px;
  font-weight: 600;
}

.auth-error.show {
  display: block;
}

.login-foot {
  margin-top: 22px;
  font-size: 12px;
  color: var(--gray);
  line-height: 1.6;
  text-align: center;
}

/* Custom CSS for the Store Selection Dropdown */
#store-select {
  width: 100% !important;
  max-width: 100% !important;
  padding: 13px 36px 13px 14px !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  color: var(--ink) !important;
  background: var(--surface) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%2364697A" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>') no-repeat right 12px center / 15px 15px !important;
  border: 1.5px solid var(--line) !important;
  border-radius: var(--radius-sm) !important;
  outline: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  cursor: pointer !important;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  box-sizing: border-box;
}

#store-select:focus {
  border-color: var(--red) !important;
  box-shadow: 0 0 0 3px rgba(224, 19, 39, 0.12) !important;
}

/* Options list inside the store login dropdown */
#store-select option {
  background-color: #ffffff;
  color: #1a1a1a;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
}

@media (max-width: 860px) {
  #login-screen {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .login-hero {
    padding: 36px 24px;
    min-height: 200px;
  }
  .login-wrap {
    padding: 32px 20px;
    max-width: 440px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .login-wrap {
    padding: 24px 16px;
  }
  .login-card {
    padding: 20px 16px;
  }
}
