@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --color-background: #f8fafc;
    --color-background-light: #ffffff;
    --color-background-alt: #f1f5f9;
    --color-text-primary: #262624;
    --color-text-strong: #0f172a;
    --color-text-muted: #475569;
    --color-text-hover: #1e293b;
    --color-border: #e5e7eb;
    --color-button: #e2e8f0;
    --color-shadow: rgba(0, 0, 0, 0.1);
    --color-accent: #23cfdc;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--color-background);
  color: var(--color-text-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.container {
  text-align: center;
  background: var(--color-background-light);
  padding: 0 2rem 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px var(--color-shadow);
  max-width: 1200px; /* prevent container from being too wide */
}

.splash-image {
  width: 100%;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.title {
  margin-top: -12rem; /* Pulls the title up over the image */
  margin-bottom: 1rem;
  color: var(--color-text-primary);
  font-size: 4rem;
  font-weight: extra-bold;
}

.login-buttons button {
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.75rem;
  padding-top: .75rem;
  padding-bottom: .75rem;
  padding-left: 2rem;
  padding-right: 2rem;
  background-color: var(--color-button);
  border: 0 solid var(--color-border);
  border-radius: .375rem;
  text-align: center;
  margin: 0;
  cursor: pointer;
}

.login-form {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

.login-form input {
  padding: 0.5rem;
  width: 250px;
}

.login-form button {
  padding: 0.5rem 1rem;
  cursor: pointer;
}

.hidden {
  display: none;
}

.marketing-link {
  color: var(--color-text-strong);
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  margin-top: 2rem;
}

/* === Supplier Portal Styles === */

/* Adjust body for a top-to-bottom layout instead of centered */
html, body.portal-body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

body.portal-body {
    display: flex;
    flex-direction: column;
    height: 100vh; /* Full viewport height */
}

.banner {
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
    background-color: var(--color-background-light);
    border-bottom: 1px solid var(--color-border);
    flex-shrink: 0; /* Prevent banner from shrinking */
}

.logo-banner {
    height: 40px;
    margin-right: 1.5rem;
}

.banner h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.tab-nav {
    background-color: var(--color-background-alt);
    padding: 0 2rem;
    border-bottom: 1px solid var(--color-border);
    flex-shrink: 0; /* Prevent nav from shrinking */
}

#tab-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

#tab-list li {
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--color-text-muted);
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease-in-out;
}

#tab-list li:hover {
    background-color: var(--color-button);
    color: var(--color-text-hover);
}

#tab-list li.active {
    color: var(--color-text-strong);
    border-bottom-color: var(--color-accent);
}

.tab-content {
    flex-grow: 1; /* Allow content to fill remaining space */
    position: relative;
    overflow: hidden;
}

.tab-content iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Override container for portal view */
.container.portal-container {
    max-width: none;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Adjustments for messages in portal context */
#loading-message, #error-message {
    padding: 2rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}