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

:root {
  --purple: #691CFF;
  --teal: #00D6C5;
  --ink: #1A1A2E;
  --body: #4D4D4D;
  --muted: #7A7D8A;
  --bg: #F0F2F6;
  --white: #FFFFFF;
  --surface: #F7F8FA;
  --border: #E3E5EC;
  --navy: #1A1A2E;
  --danger-bg: #FEE;
  --danger-text: #C00;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--body);
  background: var(--bg);
}

/* Login page */

.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--bg);
}

.login-card {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
}

.login-logo {
  font-size: 28px;
  font-weight: 600;
  color: var(--purple);
  letter-spacing: -0.02em;
}

.login-card h1 {
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  margin-top: 24px;
}

.login-subtitle {
  font-size: 14px;
  color: var(--muted);
  margin-top: 6px;
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 0.5px solid var(--border);
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group input::placeholder {
  color: var(--muted);
}

.form-group input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(105, 28, 255, 0.15);
}

.btn-primary {
  display: block;
  width: 100%;
  height: 44px;
  background: var(--purple);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 24px;
  transition: opacity 0.15s;
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.error-message {
  display: none;
  margin-top: 12px;
  padding: 10px 14px;
  background: var(--danger-bg);
  border-radius: 8px;
  font-size: 13px;
  color: var(--danger-text);
}

.login-footer {
  margin-top: 32px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

/* Home page */

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  background: var(--purple);
  padding: 0 24px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-brand {
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
}

.header-title {
  font-size: 14px;
  font-weight: 400;
  color: var(--white);
}

.header-right {
  display: flex;
  align-items: center;
}

#user-email {
  font-size: 13px;
  color: var(--white);
}

#logout-btn {
  margin-left: 16px;
  background: transparent;
  border: 1px solid var(--white);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  transition: opacity 0.15s;
}

#logout-btn:hover {
  opacity: 0.8;
}

.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px;
}

.placeholder-text {
  text-align: center;
  color: var(--muted);
  font-size: 16px;
}

/* Header context elements */

.header-separator {
  color: var(--border);
  margin: 0 8px;
}

.header-tenant {
  color: var(--ink);
  font-weight: 500;
}

.header-role {
  color: var(--muted);
  font-size: 13px;
  padding: 2px 8px;
  border: 0.5px solid var(--border);
  border-radius: 8px;
}

.header-email {
  color: var(--muted);
  font-size: 13px;
}

.header-right {
  gap: 12px;
}
