/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

body {
      background: #f8f9fa;
      font-family: sans-serif;
      margin: 0;
    }

.container {
      padding: 2rem;
      border-radius: 8px;
      background: white;
      box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    }

.logo {
      max-width: 300px;
    }

.login-container {
  max-width: 400px;
  margin: 80px auto;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  text-align: center;
}

.login-container .logo {
  max-width: 150px;
  margin-bottom: 0.5rem;
}

.login-container h2 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
  text-align: left;
}

.form-control {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.form-actions {
  margin-top: 1.5rem;
}

.btn {
  background-color: #F39200;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover {
  background-color: #cc6300;
}

.form-links {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.auth-link {
  display: inline-block;
  color: #ff7a00; /* or your Pitly orange */
  text-decoration: none;
  margin: 0.25rem 0;
  transition: color 0.2s ease;
}

.auth-link:hover {
  color: #cc6300;
  text-decoration: underline;
}

.icon {
  width: 20px;
  height: 20px;
  margin-right: .4rem;
  fill: currentColor;
}

/* --- NAVBAR LAYOUT ------------------------------------------------------ */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 1rem;
  background: #ffffff;
  border-bottom: 1px solid #e5e5e5;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* LOGO ─────────────────────────────────────────────────────────────────── */
.navbar__logo {
  display: flex;
  align-items: center;
}

/* MENU LINKS ──────────────────────────────────────────────────────────── */
.navbar__links {
  display: flex;
  gap: 1.5rem;
}

.navbar__link {
  display: flex;
  align-items: center;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  transition: color .15s;
}

.navbar__link:hover,
.navbar__link--active {
  color: #ff8200;          /* Pitly orange */
}

/* USER DROPDOWN ───────────────────────────────────────────────────────── */
.profile {
  position: relative;
}

.profile__button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ff8200;
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
}

.profile__menu {
  position: absolute;
  right: 0;
  top: calc(100% + .5rem);
  min-width: 140px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, .05);
  padding: .25rem 0;
  display: none;           /* toggled by Stimulus */
  z-index: 50;
}

.profile__menu a {
  display: block;
  padding: .5rem 1rem;
  font-size: .875rem;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
}

.profile__menu a:hover {
  background: #f6f6f6;
}

.screen-main {
  max-width: 800px;
  margin: 5rem auto 2rem;
  padding: 1rem;
  text-align: center;
}

hr {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, #ccc, transparent);
  margin: 2rem 0;
  width: 100%;
}