.auth-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}
.auth-form .form-field {
  width: 100%;
}
.auth-form .form-field input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: #e0e0e0;
  transition: border-color 0.2s, background-color 0.2s;
}
.auth-form .form-field input::placeholder {
  color: #666;
}
.auth-form .form-field input:focus {
  outline: none;
  border-color: rgba(245, 124, 0, 0.6);
  background: rgba(255, 255, 255, 0.08);
}
.auth-form .submit-btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.875rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgb(106, 27, 154) 0%, rgba(106, 27, 154, 0.8) 100%);
  border: none;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.auth-form .submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(106, 27, 154, 0.4);
}
.auth-form .submit-btn:active {
  transform: translateY(0);
}

.forgot-link {
  margin-top: 1rem;
  font-size: 0.85rem;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  max-width: 400px;
}
.admin-form .form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.admin-form .form-field label {
  font-size: 0.85rem;
  color: #9e9e9e;
}
.admin-form .form-field input[type=text],
.admin-form .form-field select,
.admin-form .form-field .form-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: #e0e0e0;
  transition: border-color 0.2s, background-color 0.2s;
}
.admin-form .form-field input[type=text]::placeholder,
.admin-form .form-field select::placeholder,
.admin-form .form-field .form-input::placeholder {
  color: #666;
}
.admin-form .form-field input[type=text]:focus,
.admin-form .form-field select:focus,
.admin-form .form-field .form-input:focus {
  outline: none;
  border-color: rgba(245, 124, 0, 0.6);
  background: rgba(255, 255, 255, 0.08);
}
.admin-form .form-field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239e9e9e' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.admin-form .submit-btn {
  align-self: flex-start;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  background: linear-gradient(135deg, rgb(106, 27, 154) 0%, rgba(106, 27, 154, 0.8) 100%);
  border: none;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.admin-form .submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(106, 27, 154, 0.4);
}
.admin-form .submit-btn:active {
  transform: translateY(0);
}

/* Information and warning box styles */
.information-box,
.warning-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 1.5rem;
  width: 100%;
  margin-bottom: 1.5rem;
}

.information-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.warning-box {
  background: rgba(245, 124, 0, 0.1);
  border: 1px solid rgba(245, 124, 0, 0.3);
}

.credential-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.credential-item:last-child {
  border-bottom: none;
}
.credential-item label {
  font-size: 0.9rem;
  color: #9e9e9e;
  width: 40%;
}
.credential-item code {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  font-family: inherit;
  font-size: 0.9rem;
  color: #e0e0e0;
  width: 55%;
  display: block;
  word-break: break-all;
}

.warning-box p {
  margin: 0;
  color: #e0e0e0;
  font-size: 0.9rem;
}
.warning-box p:first-child {
  margin-bottom: 0.5rem;
}
.warning-box p strong {
  color: rgb(245, 124, 0);
}

.vault-door {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto 2rem;
}
.vault-door .vault-ring {
  position: absolute;
  inset: 0;
  border: 3px solid rgba(106, 27, 154, 0.6);
  border-radius: 50%;
  animation: pulse-ring 3s ease-in-out infinite;
  box-sizing: border-box;
}
.vault-door .vault-ring::before, .vault-door .vault-ring::after {
  content: "";
  position: absolute;
  inset: 20px;
  border: 2px solid rgba(245, 124, 0, 0.4);
  border-radius: 50%;
}
.vault-door .vault-ring::after {
  inset: 45px;
  border-color: rgba(106, 27, 154, 0.3);
}
.vault-door .vault-title {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
  color: #ccc;
}

@keyframes pulse-ring {
  0%, 100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}
.content {
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: auto;
  padding: 0 1.5rem;
}
.content h1 {
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  background: linear-gradient(135deg, #e0e0e0 0%, #9e9e9e 100%);
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.content .tagline {
  font-size: 1.1rem;
  color: rgba(245, 124, 0, 0.9);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 2rem;
  white-space: nowrap;
}
.content .description {
  font-size: 1rem;
  line-height: 1.8;
  color: #9e9e9e;
  margin: 0;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  white-space: nowrap;
}
.content .description-secondary {
  font-size: 1rem;
  line-height: 1.8;
  color: #9e9e9e;
  margin: 0 0 2rem;
}
.content .coming-soon {
  font-size: 0.85rem;
  color: #a855f7;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 3rem;
}

body {
  background-color: #0a0a0a;
  color: #e0e0e0;
  font-family: -apfixupple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  position: relative;
  overflow: hidden;
}
body::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(106, 27, 154, 0.15) 0%, transparent 70%), radial-gradient(ellipse at 80% 80%, rgba(245, 124, 0, 0.1) 0%, transparent 50%);
  pointer-events: none;
}
body a {
  color: rgba(245, 124, 0, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
  border-bottom: 1px solid transparent;
}
body a:hover {
  color: rgb(245, 124, 0);
  border-bottom-color: rgb(245, 124, 0);
}

.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(106, 27, 154, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  z-index: 100;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
}
.header-logo img {
  width: 28px;
  height: 28px;
}
.header-logo:hover {
  border: none;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-link {
  color: #ccc;
  font-size: 0.85rem;
  border: none;
}
.header-link:hover {
  color: #fff;
  border: none;
}
.header-link.current {
  color: rgb(245, 124, 0);
}

.header-user {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-email {
  color: #ccc;
  font-size: 0.85rem;
  border: none;
}
.header-email:hover {
  color: #fff;
  border: none;
}

.header-signout {
  background: transparent;
  border: 1px solid rgba(106, 27, 154, 0.8);
  color: #9e9e9e;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}
.header-signout:hover {
  border-color: rgb(245, 124, 0);
  color: rgb(245, 124, 0);
}

.destroy-btn {
  background: transparent;
  border: 1px solid rgba(220, 53, 69, 0.6);
  color: rgb(220, 53, 69);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}
.destroy-btn:hover {
  border-color: rgb(220, 53, 69);
  background: rgba(220, 53, 69, 0.1);
  color: rgb(220, 53, 69);
}

.sidebar-layout {
  display: flex;
  width: 100%;
  max-width: 1400px;
  margin-top: 48px;
  min-height: calc(100vh - 48px);
}

.sidebar {
  width: 220px;
  flex-shrink: 0;
  background: rgba(10, 10, 10, 0.6);
  border-right: 1px solid rgba(106, 27, 154, 0.3);
  padding: 1.5rem 0;
}

.sidebar-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-nav-item {
  margin: 0;
}

.sidebar-nav-link {
  display: block;
  padding: 0.75rem 1.5rem;
  color: #9e9e9e;
  border: none;
  border-left: 2px solid transparent;
  transition: all 0.2s;
}
.sidebar-nav-link:hover {
  color: #e0e0e0;
  background: rgba(106, 27, 154, 0.3);
  border-left-color: rgba(106, 27, 154, 0.8);
  border-bottom: none;
}

.sidebar-nav-link.current,
.sidebar-nav-item .current {
  display: block;
  padding: 0.75rem 1.5rem;
  color: #fff;
  background: rgba(245, 124, 0, 0.7);
  border-left: 2px solid rgb(245, 124, 0);
}

.sidebar-content {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
}

.flash-message {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-size: 0.9rem;
  animation: fade-in 0.3s ease-out;
  transition: opacity 0.3s ease-out;
  z-index: 200;
}
.flash-message.flash-alert {
  background: rgba(220, 53, 69, 0.9);
  color: #fff;
}
.flash-message.flash-notice {
  background: rgba(40, 167, 69, 0.9);
  color: #fff;
}
.flash-message.fade-out {
  opacity: 0;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}
