/* Account Navigation */
.account-navigation {
  margin-bottom: 2rem;
  border-bottom: 1px solid #eaeaea;
}

.account-navigation ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

.account-navigation li {
  margin-right: 1rem;
}

.account-navigation li a {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: #333;
  border-bottom: 3px solid transparent;
}

.account-navigation li.active a {
  border-bottom-color: #0066cc;
  font-weight: bold;
}

.account-navigation .icon {
  margin-right: 0.5rem;
}

/* Account Content */
.account-content {
  max-width: 1200px;
  margin: 0 auto;
}

/* Access Status Styles */
.access-status {
  background: #f0f8ff;
  border: 1px solid #0066cc;
  border-radius: 4px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.access-status .owned {
  color: #0066cc;
  font-weight: 500;
  display: flex;
  align-items: center;
}

.access-status .owned::before {
  content: "✓";
  margin-right: 0.5rem;
  font-weight: bold;
  color: #28a745;
}

.access-status small {
  margin-left: 0.5rem;
  color: #666;
  font-size: 0.875rem;
}

.access-status small a {
  color: #0066cc;
  text-decoration: none;
}

.access-status small a:hover {
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .account-navigation ul {
    flex-direction: column;
  }
  
  .account-navigation li {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
  
  .account-navigation li a {
    border-left: 3px solid transparent;
    border-bottom: none;
  }
  
  .account-navigation li.active a {
    border-left-color: #0066cc;
    border-bottom: none;
  }
}

/* Header Styles */
.site-header {
  padding: 1rem 0;
  border-bottom: 1px solid #eaeaea;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

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

.logo {
  font-weight: bold;
  font-size: 1.5rem;
  text-decoration: none;
  color: #333;
  margin-right: 2rem;
}

.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav li {
  margin-right: 1.5rem;
}

.main-nav a {
  text-decoration: none;
  color: #333;
}

.main-nav a:hover {
  color: #0066cc;
}

/* Account Dropdown */
.account-dropdown {
  position: relative;
}

.account-toggle {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.account-toggle .user-name {
  margin-right: 0.5rem;
}

.dropdown-menu {
  position: absolute;
  right: 0;
  top: 100%;
  background: white;
  border: 1px solid #eaeaea;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  min-width: 200px;
  display: none;
  z-index: 100;
}

.account-dropdown:hover .dropdown-menu {
  display: block;
}

.account-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.account-menu li {
  border-bottom: 1px solid #eaeaea;
}

.account-menu li:last-child {
  border-bottom: none;
}

.account-menu a {
  display: block;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: #333;
}

.account-menu a:hover {
  background-color: #f5f5f5;
}

.account-menu form {
  padding: 0.75rem 1rem;
}

.account-menu button {
  background: none;
  border: none;
  color: #333;
  cursor: pointer;
  padding: 0;
  text-align: left;
  width: 100%;
}

.account-menu button:hover {
  color: #0066cc;
}

.divider {
  border-top: 1px solid #eaeaea;
  margin: 0.5rem 0;
}

.login-button {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #0066cc;
  color: white;
  text-decoration: none;
  border-radius: 4px;
}

.login-button:hover {
  background-color: #0055aa;
}

/* Login Modal */
.login-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.login-modal:target {
  opacity: 1;
  visibility: visible;
}

.login-container {
  background-color: white;
  border-radius: 8px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.login-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #eaeaea;
}

.login-header h2 {
  margin: 0;
  font-size: 1.5rem;
}

.close-modal {
  font-size: 1.5rem;
  text-decoration: none;
  color: #999;
}

.login-body {
  padding: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.form-actions {
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-actions .button {
  margin: 0;
}

.form-actions .forgot-password-link {
  margin: 0;
  font-size: 0.9rem;
  background: none;
  border: none;
  color: #0066cc;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.form-actions .forgot-password-link:hover {
  color: #0055aa;
}

.signup-prompt {
  text-align: center;
  margin-top: 1rem;
}

.signup-prompt p {
  margin: 0;
  color: #666;
}

.signup-prompt a {
  color: #0066cc;
  text-decoration: none;
}

.signup-prompt a:hover {
  text-decoration: underline;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  font-size: 0.9rem;
  color: #666;
}

.checkbox-label input[type="checkbox"] {
  margin-right: 0.5rem;
  margin-top: 0.2rem;
  width: auto;
}

.checkbox-label span {
  line-height: 1.4;
}

.form-group small {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: #666;
}

.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #eaeaea;
  color: #333;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  text-decoration: none;
}

.button.primary {
  background-color: #0066cc;
  color: white;
}

.button.primary:hover {
  background-color: #0055aa;
}

.button.secondary {
  background-color: #6c757d;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  font-size: 1rem;
  margin-left: 0.5rem;
}

.button.secondary:hover {
  background-color: #5a6268;
}

.button-link {
  background: none;
  border: none;
  color: #0066cc;
  cursor: pointer;
  font-size: 1rem;
  text-decoration: underline;
  padding: 0;
}

.button-link:hover {
  color: #0055aa;
}

.or-divider {
  text-align: center;
  margin: 1.5rem 0;
  position: relative;
}

.or-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background-color: #eaeaea;
}

.alert {
  padding: 0.75rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.alert.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.login-footer {
  margin-top: 2rem;
  text-align: center;
  color: #666;
  font-size: 0.9rem;
}

.login-footer a {
  color: #0066cc;
  text-decoration: none;
}

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

/* Remove old tab styles since we're not using them anymore */
.login-tabs {
  display: none;
}

.tab-button {
  display: none;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: none;
}

.form-footer {
  margin-top: 1.5rem;
  text-align: center;
}

.forgot-password-link,
.back-to-login {
  color: #0066cc;
  text-decoration: none;
  font-size: 0.9rem;
}

.forgot-password-link:hover,
.back-to-login:hover {
  text-decoration: underline;
}

.form-info {
  margin-top: 1rem;
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 4px;
  font-size: 0.9rem;
  color: #666;
}

.form-info p {
  margin: 0;
}

.code-info {
  margin-top: 1rem;
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 4px;
}

.code-info p {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
}

.resend-link {
  margin-top: 1rem;
  text-align: center;
}

.resend-link a {
  color: #0066cc;
  text-decoration: none;
  font-size: 0.9rem;
}

.resend-link a:hover {
  text-decoration: underline;
}

/* Loader animation */
.loader {
  width: 20px;
  height: 20px;
  aspect-ratio: 1;
  --_c:no-repeat radial-gradient(farthest-side,#25b09b 92%,#0000);
  background: 
    var(--_c) top,
    var(--_c) left,
    var(--_c) right,
    var(--_c) bottom;
  background-size: 8px 8px;
  animation: l7 1s infinite;
  margin: 0 auto;
}
@keyframes l7 {to{transform: rotate(.5turn)}}

/* Button loading state */
.button.loading {
  position: relative;
  pointer-events: none;
}

.button.loading .button-text {
  opacity: 0;
}

.button.loading .loader {
  display: block !important;
}