* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: #f6f7fb;
  color: #1f2937;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}

header h1 {
  margin-bottom: 8px;
}

header p {
  margin-top: 0;
  color: #4b5563;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-top: 24px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.hidden {
  display: none;
}

.home-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 10px 18px;
  text-decoration: none;
  background: #4f46e5;
  color: #fff;
  font-weight: 600;
}

.secondary {
  background: #e0e7ff;
  color: #3730a3;
}

.auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-form input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  margin-top: 4px;
}

.auth-links {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.auth-links a {
  color: #4f46e5;
  text-decoration: none;
  font-weight: 600;
}

.ghost {
  background: transparent;
  color: #4b5563;
}

.link-button {
  background: transparent;
  color: #4f46e5;
  padding: 0;
  text-align: left;
}

.current-user {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  background: #f3f4f6;
}

.reset-token {
  margin: 0;
  font-size: 14px;
  color: #4b5563;
  word-break: break-all;
}

.file-input {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #eef2ff;
  border-radius: 8px;
  cursor: pointer;
  margin-right: 12px;
}

.file-input input {
  display: none;
}

button {
  border: none;
  background: #4f46e5;
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.status {
  margin-top: 12px;
  color: #2563eb;
}

.status.error {
  color: #dc2626;
}

.results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.result-card {
  background: #f9fafb;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.result-card img {
  width: 100%;
  border-radius: 8px;
  background-color: #fff;
  background-image:
    linear-gradient(45deg, #e5e7eb 25%, transparent 25%),
    linear-gradient(-45deg, #e5e7eb 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e5e7eb 75%),
    linear-gradient(-45deg, transparent 75%, #e5e7eb 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
}

.result-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.result-meta a {
  color: #4f46e5;
  text-decoration: none;
  font-weight: 600;
}
