/* ===== BASE STYLES ===== */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Lato', 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  background-image: url('https://dashboard.shelftrak.com/assets/background-1-2500px-B6lygqjE.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
}

/* ===== MAIN LAYOUT ===== */
.main-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.content-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

/* ===== LEFT SIDE (Desktop only) ===== */
.left-side {
  display: none;
}

/* ===== DIVIDER (Desktop only) ===== */
.divider {
  display: none;
}

/* ===== RIGHT SIDE (Login) ===== */
.right-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 400px;
}

/* Mobile logo */
.mobile-logo {
  width: 220px;
  margin-bottom: 20px;
}

/* Mobile title */
.mobile-header {
  text-align: center;
  margin-bottom: 20px;
}

.mobile-header h1 {
  color: #fff;
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 8px 0;
}

.mobile-header p {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  margin: 0;
}

/* Desktop-only elements hidden on mobile */
.desktop-logo,
.desktop-title {
  display: none;
}

/* ===== PANEL / CARD ===== */
.panel-body {
  background-color: #fff;
  padding: 28px 24px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.panel-body > h2 {
  margin: 0 0 5px 0;
  font-weight: 500;
  font-size: 22px;
  color: #1a1a4e;
  text-align: center;
}

/* ===== FORM STYLES (Azure B2C injects into #api) ===== */
#api {
  width: 100%;
}

.heading {
  display: none;
}

.intro h2 {
  font-size: 16px;
  font-weight: 400;
  color: #444;
  margin: 0 0 10px 0;
  text-align: center;
}

.entry {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 200px;
}

.entry-item {
  display: flex;
  flex-direction: column;
  width: 100%;
}

label {
  display: none;
}

input {
  width: 100%;
  padding: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #F5F5FA;
  font-size: 16px;
}

input:focus {
  outline: none;
  border-color: #393993;
  box-shadow: 0 0 0 3px rgba(57, 57, 147, 0.15);
}

input::placeholder {
  color: #888;
}

.password-label {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 8px;
}

.password-label a,
#forgotPassword {
  color: #393993;
  text-decoration: none;
  font-size: 14px;
}

.password-label a:hover,
#forgotPassword:hover {
  text-decoration: underline;
}

.buttons {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 10px;
}

button {
  width: 60%;
  min-width: 140px;
  padding: 16px 24px;
  border: none;
  border-radius: 8px;
  background-color: #393993;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

button:hover {
  background-color: #2d2d7a;
}

.error.pageLevel,
.error.itemLevel {
  color: #dc3545;
  font-size: 14px;
  margin-top: 4px;
}

.error[aria-hidden="true"] {
  display: none;
}

.working {
  display: none;
}

/* ===== FOOTER ===== */
.footer {
  display: flex;
  justify-content: center;
  padding: 16px;
  font-size: 12px;
}

.footer a,
.footer span {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

/* ==========================================================
   DESKTOP STYLES (1024px and up)
   ========================================================== */
@media screen and (min-width: 1024px) {
  .content-wrapper {
    gap: 80px;
    max-width: 1600px;
    width: 95%;
  }

  /* Show left side */
  .left-side {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    max-width: 600px;
    padding-left: 0px;
  }

  .left-top {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 30px;
  }

  .left-text {
    min-width: 280px;
  }

  .left-text h1 {
    color: #fff;
    font-size: 42px;
    margin: 0 0 16px 0;
    line-height: 1.2;
    max-width: 450px;
  }

  .left-text h2 {
    color: #fff;
    font-size: 28px;
    font-weight: 400;
    margin: 0;
    max-width: 450px;
  }

  .phone-image {
    width: 350px;
    transform: rotate(-5deg);
  }

  .desktop-logo {
    display: block;
    width: 300px;
  }

  /* Show divider */
  .divider {
    display: block;
    width: 3px;
    background-color: #fff;
    min-height: 500px;
    align-self: stretch;
    flex-shrink: 0;
    margin: 50px 0;
  }

  /* Right side adjustments */
  .right-side {
    max-width: 450px;
  }

  /* Hide mobile elements */
  .mobile-logo,
  .mobile-header {
    display: none;
  }

  /* Show desktop title */
  .desktop-title {
    display: block;
    color: #fff;
    font-size: 42px;
    margin: 0 0 24px 0;
    text-align: center;
  }

  .panel-body {
    padding: 40px;
  }

  .panel-body > h2 {
    font-size: 24px;
  }

  .intro h2 {
    font-size: 18px;
  }

  button {
    width: 50%;
  }
}
