/* Header */
.site-header {
  min-height: 56px !important;
  padding: 0 !important;
  border-bottom: 1px solid #eee !important;
  background: #fff !important;
}

.header-wrapper {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: 56px !important;
}

.site-header .site-title {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #333 !important;
  line-height: 56px !important;
  letter-spacing: -0.3px;
  float: none !important;
}

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

/* Hide minima's default nav (hamburger) */
.site-header .site-nav {
  display: none !important;
}

/* Auth Nav */
.auth-nav-container {
  display: flex !important;
  align-items: center !important;
  gap: 0.6rem;
}

.auth-user-info {
  display: flex !important;
  align-items: center !important;
  gap: 0.6rem;
  font-size: 0.85rem;
}

.auth-user-email {
  color: #555;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.85rem;
}

.auth-logout-btn {
  font-size: 0.8rem;
  color: #888;
  text-decoration: none;
  border: 1px solid #ddd;
  padding: 4px 14px;
  border-radius: 20px;
  transition: all 0.2s;
  background: transparent;
}

.auth-logout-btn:hover {
  background: #f5f5f5;
  border-color: #bbb;
  color: #333;
}

.auth-login-link {
  font-size: 0.82rem;
  color: #fff;
  text-decoration: none;
  background: #2a7ae2;
  border: none;
  padding: 5px 16px;
  border-radius: 20px;
  transition: all 0.2s;
  line-height: 1.4;
}

.auth-login-link:hover {
  background: #1a5fb4;
  color: #fff;
}

/* Mobile header */
@media screen and (max-width: 600px) {
  .header-wrapper {
    height: 50px !important;
  }
  .site-header .site-title {
    font-size: 16px !important;
    line-height: 50px !important;
  }
  .header-right {
    height: 50px;
  }
  .auth-user-email {
    max-width: 100px;
    font-size: 0.75rem;
  }
  .auth-login-link {
    font-size: 0.78rem;
    padding: 4px 12px;
  }
}

/* Login Page Styles */
.auth-page {
  max-width: 420px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.auth-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.auth-card h1 {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 0.3rem;
  color: #333;
}

.auth-card .auth-subtitle {
  text-align: center;
  color: #888;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.auth-tabs {
  display: flex;
  border-bottom: 2px solid #e0e0e0;
  margin-bottom: 1.5rem;
}

.auth-tab {
  flex: 1;
  text-align: center;
  padding: 0.6rem 0;
  cursor: pointer;
  font-size: 1rem;
  color: #888;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: inherit;
}

.auth-tab:hover {
  color: #333;
}

.auth-tab.active {
  color: #2a7ae2;
  border-bottom-color: #2a7ae2;
  font-weight: 600;
}

.auth-form-group {
  margin-bottom: 1rem;
}

.auth-form-group label {
  display: block;
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 0.3rem;
  font-weight: 500;
}

.auth-form-group input {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.2s;
  box-sizing: border-box;
  font-family: inherit;
}

.auth-form-group input:focus {
  outline: none;
  border-color: #2a7ae2;
  box-shadow: 0 0 0 2px rgba(42, 122, 226, 0.15);
}

.auth-submit-btn {
  width: 100%;
  padding: 0.7rem;
  background: #2a7ae2;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
  margin-top: 0.5rem;
}

.auth-submit-btn:hover {
  background: #1a5bb5;
}

.auth-submit-btn:disabled {
  background: #a0c4f1;
  cursor: not-allowed;
}

.auth-divider {
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
  color: #aaa;
  font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e0e0e0;
}

.auth-divider span {
  padding: 0 0.8rem;
}

.auth-social-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.auth-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.65rem;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  background: #fff;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  color: #333;
}

.auth-social-btn:hover {
  background: #f5f5f5;
  border-color: #bbb;
}

.auth-social-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.auth-message {
  padding: 0.7rem;
  border-radius: 6px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: none;
}

.auth-message.error {
  display: block;
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.auth-message.success {
  display: block;
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.auth-footer {
  text-align: center;
  margin-top: 1.2rem;
  font-size: 0.85rem;
  color: #888;
}

.auth-footer a {
  color: #2a7ae2;
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* Password reset form */
.auth-reset-link {
  display: inline-block;
  margin-top: 0.3rem;
  font-size: 0.85rem;
  color: #2a7ae2;
  text-decoration: none;
  cursor: pointer;
}

.auth-reset-link:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 480px) {
  .auth-card {
    padding: 1.5rem;
  }

  .auth-user-email {
    max-width: 120px;
  }
}
