:root {
  /* Carbon Design Colors */
  --cds-text-primary: #161616;
  --cds-text-secondary: #525252;
  --cds-background: #ffffff;
  --cds-background-active: #e5e5e5;
  --cds-background-hover: #f4f4f4;
  --cds-border-subtle: #e0e0e0;
  --cds-border-strong: #8d8d8d;
  --cds-focus: #0f62fe;
  --cds-button-primary: #0f62fe;
  --cds-button-secondary: #393939;
  --cds-layer-01: #f4f4f4;
  --cds-layer-hover-01: #e8e8e8;
  --cds-field-01: #f4f4f4;
  --cds-field-hover-01: #e8e8e8;
  --cds-support-success: #24a148;
  --cds-support-error: #da1e28;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "IBM Plex Sans", sans-serif;
}

body {
  background-color: var(--cds-background-active);
  color: var(--cds-text-primary);
  line-height: 1.5;
  padding: 2rem;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1200px;
  width: 100%;
  background: white;
  border: 1px solid var(--cds-border-subtle);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.left {
  padding: 2rem;
}

.cds--quote {
  border-left: 2px solid var(--cds-button-primary);
  background-color: var(--cds-layer-01);
  color: var(--cds-text-secondary);
  width: 100%;
  height: 40px;
  padding: 0 1rem;
  line-height: 40px;
}

.right {
  padding: 2rem;
  border-left: 1px solid var(--cds-border-subtle);
  position: relative;
}

.tabs {
  display: flex;
  border-bottom: 2px solid var(--cds-border-subtle);
  margin-bottom: 2rem;
}

.tab {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--cds-text-secondary);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: all 0.2s;
}

.tab:hover {
  color: var(--cds-text-primary);
  border-bottom-color: var(--cds-border-strong);
}

.tab.active {
  color: var(--cds-text-primary);
  border-bottom-color: var(--cds-button-primary);
  font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  height: 40px;
  padding: 0 1rem;
  background-color: var(--cds-field-01);
  border: none;
  border-bottom: 1px solid var(--cds-border-strong);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.875rem;
  color: var(--cds-text-primary);
  transition: background-color 0.2s;
  margin-bottom: 1rem;
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="password"]:hover {
  background-color: var(--cds-field-hover-01);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
  outline: 2px solid var(--cds-focus);
  outline-offset: -2px;
}

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1rem;
  font-size: 0.875rem;
  font-weight: 400;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.2s;
}

button.primary {
  background-color: var(--cds-button-primary);
  color: white;
}

button.primary:hover {
  background-color: #0353e9;
}

button.secondary {
  background-color: var(--cds-button-secondary);
  color: white;
}

button.secondary:hover {
  background-color: #4c4c4c;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  animation: spin 1s linear infinite;
  margin-left: 0.5rem;
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

#notification {
  width: 100%;
  padding: 1rem;
  margin: 1rem 0;
  font-size: 0.875rem;
  border-left: 3px solid transparent;
  background-color: var(--cds-layer-01);
  opacity: 0;
  transition: opacity 0.3s;
}

#notification.success {
  border-left-color: var(--cds-support-success);
  background-color: #defbe6;
}

#notification.error {
  border-left-color: var(--cds-support-error);
  background-color: #fff1f1;
}

#notification.show {
  opacity: 1;
}

#userSection {
  background-color: var(--cds-layer-01);
  padding: 2rem;
  text-align: center;
}

.avatar-container {
  width: 200px;
  height: 200px;
  margin: 0 auto 1.5rem;
  overflow: hidden;
  border: 2px solid var(--cds-border-strong);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.avatar-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#welcomeMessage {
  margin: 1.5rem 0;
  color: var(--cds-text-primary);
}

#userEmail {
  color: var(--cds-button-primary);
  font-weight: 500;
}

.hidden {
  display: none !important;
}

h1,
h2 {
  color: var(--cds-text-primary);
  margin-bottom: 1.5rem;
}

p {
  color: var(--cds-text-secondary);
  margin-bottom: 1rem;
}

#prototypeLinks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

#prototypeLinks a {
  padding: 1rem;
  background-color: var(--cds-layer-01);
  color: var(--cds-text-primary);
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid var(--cds-border-subtle);
}

#prototypeLinks a:hover {
  background-color: var(--cds-layer-hover-01);
  border-color: var(--cds-border-strong);
}

/* Prototype loading styles */
.loading-prototypes {
  text-align: center;
  color: #666;
  padding: 10px;
  font-style: italic;
}

.no-prototypes {
  text-align: center;
  color: #666;
  padding: 10px;
  font-style: italic;
}

#prototypeLinks .error {
  color: var(--cds-support-error);
  text-align: center;
  padding: 10px;
  grid-column: 1 / -1;
  background-color: #fff1f1;
  border: 1px solid var(--cds-support-error);
}

@media screen and (max-width: 768px) {
  .container {
    display: flex;
    flex-direction: column;

    .left {
      border-bottom: 1px solid var(--cds-border-subtle);
      padding-bottom: 4rem;
    }
  }
}
