/* Gallery Grid */
.gallery {
	display:grid;
	grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
	gap:1.5rem;
	margin:2rem 0;
}

.gallery img { 
	width:100%; 
	height:200px; 
	object-fit:cover; 
	cursor:pointer;
	border-radius:8px;
	transition:transform 0.2s ease;
}

.gallery img:hover {
	transform:scale(1.02);
	box-shadow:0 4px 12px rgba(0,0,0,0.15);
}

.photo-item { 
	background:white;
	border:1px solid #e1e5e9;
	border-radius:12px;
	padding:1rem;
	text-align:center;
	box-shadow:0 2px 4px rgba(0,0,0,0.1);
	transition:box-shadow 0.2s ease;
}

.photo-item:hover {
	box-shadow:0 4px 12px rgba(0,0,0,0.15);
}

/* Lightbox */
#light {
	position:fixed;
	top:0;
	left:0;
	width:100%;
	height:100%;
	background:rgba(0,0,0,0.9);
	display:none;
	align-items:center;
	justify-content:center;
	z-index:1000;
}

#light img { 
	max-width:90%; 
	max-height:90%;
	border-radius:8px;
}

/* Pagination */
.pagination { 
	text-align:center;
	margin:0.5rem 0;
}

.pagination-top {
	margin-bottom:1rem;
}

.pagination a {
	background:#007bff;
	color:white;
	padding:0.5rem 1rem;
	border-radius:4px;
	text-decoration:none;
	transition:background-color 0.2s ease;
}

.pagination-prev {
	background:#6c757d;
	margin-right:0.5rem;
}

.pagination-next {
	background:#007bff;
}

.pagination-info {
	margin: 0 1rem;
	color: #6c757d;
	font-size: 1.1rem;
	font-weight: 600;
	align-self: center;
}

.pagination-prev:hover {
	background:#5a6268;
}

.pagination-next:hover {
	background:#0056b3;
}

.pagination a:hover {
	background:#0056b3;
}

/* Upload Interface */
#drop { 
	border:2px dashed #6c757d;
	padding:3rem;
	text-align:center;
	background:#f8f9fa;
	border-radius:12px;
	margin:2rem 0;
	transition:border-color 0.3s ease, background-color 0.3s ease;
}

#drop:hover {
	border-color:#007bff;
	background:#e3f2fd;
}

#drop.dragover {
	border-color:#28a745;
	background:#d4edda;
}

#photo-preview { 
	margin:2rem 0;
}

#photo-preview h3 { 
	display: none;
	color:#495057;
	margin-bottom:1rem;
}

#photo-preview.has-photos h3 { 
	display: block;
}

#photo-list > div { 
	margin:1rem 0; 
	padding:1rem; 
	border:1px solid #e1e5e9; 
	border-radius:8px;
	display:flex; 
	align-items:center; 
	gap:1rem;
	background:white;
	box-shadow:0 1px 3px rgba(0,0,0,0.1);
}

#photo-list img { 
	width:80px; 
	height:80px; 
	object-fit:cover;
	border-radius:6px;
}

#photo-list > div > div:first-child { 
	flex:1;
}

#photo-list input { 
	width:100%; 
	margin-top:0.5rem;
	padding:0.5rem;
	border:1px solid #ced4da;
	border-radius:4px;
	font-size:0.9rem;
}

#photo-list input:focus {
	outline:none;
	border-color:#007bff;
	box-shadow:0 0 0 2px rgba(0,123,255,0.25);
}

#upload-btn { 
	margin-top:1rem;
	background:#28a745;
	color:white;
	border:none;
	padding:0.75rem 1.5rem;
	border-radius:6px;
	cursor:pointer;
	font-size:1rem;
	transition:background-color 0.2s ease;
}

#upload-btn:hover {
	background:#218838;
}

#upload-btn:disabled {
	background:#6c757d;
	cursor:not-allowed;
}

#prog { 
	display:none; 
	width:100%;
	height:8px;
	margin-top:1rem;
}

#prog::-webkit-progress-bar {
	background:#e9ecef;
	border-radius:4px;
}

#prog::-webkit-progress-value {
	background:#007bff;
	border-radius:4px;
}

/* Hidden elements */
#directory { display:none; }

/* Footer */
#footer {
	border-top: 1px solid #e1e5e9;
	clear: both;
	padding-top: 2em;
	text-align: center;
	padding-right: 160px;
	font-family: sans-serif;
	font-size: 0.8em;
	color:#6c757d;
}

/* Form improvements */
input[type="text"] {
	padding:0.5rem;
	border:1px solid #ced4da;
	border-radius:4px;
	font-size:1rem;
	transition:border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus {
	outline:none;
	border-color:#007bff;
	box-shadow:0 0 0 2px rgba(0,123,255,0.25);
}

/* AI button styling */
button[type="button"]:not(#upload-btn) {
	background:#17a2b8;
	color:white;
	border:none;
	padding:0.25rem 0.5rem;
	border-radius:4px;
	cursor:pointer;
	font-size:0.8rem;
	transition:background-color 0.2s ease;
}

button[type="button"]:not(#upload-btn):hover {
	background:#138496;
}

button[type="button"]:not(#upload-btn):disabled {
	background:#6c757d;
	cursor:not-allowed;
}

/* Browse button styling */
#browse-btn:hover {
	background:#0056b3;
}

/* Validation message styling */
#title-validation, #filename-validation {
	margin-left:10px;
	font-size:0.9rem;
	color:#dc3545;
	height:1.2rem;
}

#directory {
	margin-left:10px;
	background:#f5f5f5;
}

#browse-btn {
	background:#007bff;
	color:white;
	border:none;
	padding:0.75rem 1.5rem;
	border-radius:6px;
	cursor:pointer;
	font-size:1rem;
	transition:background-color 0.2s ease;
}

#or-divider {
	text-align: center; 
	margin: 1rem 0; 
	color: #6c757d;
}

.gitlog-table {
  border-collapse: collapse;
  max-height: 70vh;
  overflow-y: auto;
  display: block;
  scrollbar-width: thin;
  scrollbar-color: #888 #f1f1f1;
  border: 1px solid #ddd;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.gitlog-table::-webkit-scrollbar {
  width: 8px;
}

.gitlog-table::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.gitlog-table::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.gitlog-table::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.gitlog-table th,
.gitlog-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
  font-size: 0.95rem;
}

.gitlog-table th {
  background-color: #f5f5f5;
  font-weight: 600;
  color: #333;
}

.gitlog-table tr:hover {
  background-color: #f9f9f9;
}

/* Enhanced color scheme for Pixora */
:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --border-color: #e5e7eb;
    --shadow-light: rgba(0, 0, 0, 0.05);
    --shadow-medium: rgba(0, 0, 0, 0.1);
    --shadow-strong: rgba(0, 0, 0, 0.15);
}

/* Enhanced body background */
body {
    background: linear-gradient(135deg, #f0f4ff 0%, #f8f5ff 100%);
    min-height: 100vh;
}

/* Main content container */
main {
    background: var(--bg-primary);
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    margin: 2rem auto;
    max-width: 1200px;
    padding: 2rem;
}

/* Enhanced gallery items */
.gallery-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px var(--shadow-medium);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px var(--shadow-strong);
    border-color: var(--primary-color);
}

.gallery-link {
    display: block;
    text-decoration: none;
    color: var(--text-primary);
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    transition: all 0.3s ease;
}

.gallery-link:hover {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    text-decoration: none;
    color: var(--primary-color);
}

.photo-count {
    display: inline;
    color: var(--primary-color);
    font-size: 0.85rem;
    margin-left: 0.5rem;
    font-weight: 600;
    background: rgba(99, 102, 241, 0.1);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
}

/* Enhanced gallery header */
.gallery-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.gallery-header h3 {
    margin: 0;
    /* color: var(--text-primary); // using local.css to define h3 colors*/
    font-weight: 700;
    font-size: 1.5rem;
}

/* Theme title editing */
.theme-title-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.edit-theme-btn, .cancel-theme-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9em;
    padding: 0;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    vertical-align: middle;
    margin-left: 0.25rem;
}

.edit-theme-btn:hover, .cancel-theme-btn:hover {
    background-color: var(--bg-secondary);
}

.theme-title-input {
    font-size: 1.5rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    background: var(--bg-primary);
    color: var(--text-primary);
    outline: none;
    margin: 0;
}

.theme-title-input:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.back-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.2s ease;
}

.back-link:hover {
    color: var(--bg-primary);
    background-color: var(--primary-color);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px var(--shadow-medium);
}

/* Enhanced divider */
.gallery-divider {
  border: none;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--primary-color), transparent);
  margin: 1.5rem 0;
  opacity: 0.6;
}

/* Enhanced form elements */
input[type="text"], input[type="file"] {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: var(--bg-primary);
}

input[type="text"]:focus, input[type="file"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

button {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

button:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px var(--shadow-medium);
}

/* Drop zone styling - FIXED VISIBILITY */
#drop {
    border: 3px dashed var(--primary-color);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px var(--shadow-light);
}

#drop:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px var(--shadow-medium);
}

/* Photo items enhancement */
.photo-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 4px var(--shadow-light);
    transition: all 0.3s ease;
}

.photo-item:hover {
    box-shadow: 0 8px 16px var(--shadow-medium);
    transform: translateY(-2px);
}

.photo-item img {
    border-radius: 8px;
    transition: all 0.3s ease;
}

.photo-item img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px var(--shadow-medium);
}

/* Delete button styling */
.photo-item form button {
    background: #f8f9fa;
    color: #495057;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border: 1px solid #ced4da;
}

.photo-item form button:hover {
    background: #e9ecef;
}

/* Progress bar styling */
progress {
    height: 8px;
    border-radius: 4px;
    background: var(--bg-tertiary);
}

progress::-webkit-progress-value {
    background: var(--primary-color);
    border-radius: 4px;
}

progress::-moz-progress-bar {
    background: var(--primary-color);
    border-radius: 4px;
}

/* Allow wrapping (default browser behavior) */
.text-wrap {
  white-space: normal;
}

/* Prevent wrapping (force single line) */
.text-nowrap {
  white-space: nowrap;
}

/* Gallery Header */
.gallery-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e1e5e9;
}

.photo-meta {
  margin-top: 0.5rem;
}

.photo-theme-link {
  color: var(--primary-color);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.photo-theme-link:hover {
  text-decoration: underline;
}

.back-link {
  color: #6c757d;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.back-link:hover {
  color: #2c3e50;
  background-color: #f8f9fa;
  text-decoration: none;
}

/* Existing Galleries Section */
.existing-galleries {
  margin-bottom: 0.5rem;
}

.gallery-info {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.gallery-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border-color);
}

.pagination-link {
  background: var(--primary-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.pagination-link:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px var(--shadow-medium);
}

.pagination-info {
  color: var(--text-secondary);
  font-weight: 500;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.gallery-item {
  background: white;
  border: 1px solid #e1e5e9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.gallery-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.delete-theme-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0.25rem;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.add-more-btn {
  background: #007bff;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-left: 0.5rem;
}

.add-more-btn:hover {
  background: #0056b3;
  text-decoration: none;
  color: white;
}

.delete-theme-btn:hover {
  opacity: 1;
  background-color: var(--bg-secondary);
  transform: scale(1.1);
}

.gallery-link {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 1rem;
}

.photo-count {
  display: inline;
  color: #6c757d;
  font-size: 0.85rem;
  margin-left: 0.5rem;
  font-weight: 400;
}

.gallery-divider {
  border: none;
  height: 2px;
  background: linear-gradient(to right, transparent, #e1e5e9, transparent);
  margin: 1.5rem 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.8rem;
  }
  
  .gallery-link {
    padding: 0.8rem;
  }
  
  .gallery-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .back-link {
    align-self: flex-start;
  }
}

/* Photo Description Editing */
.photo-description-container {
  margin: 0.5rem 0;
  position: relative;
}

.photo-description {
  margin: 0;
  padding: 0.5rem;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  cursor: pointer;
  min-height: 1.2em;
  font-size: 0.9rem;
  color: #495057;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.photo-description:hover {
  background: #e9ecef;
  border-color: #dee2e6;
}

.photo-description:empty::before {
  content: "Click to add description";
  color: #6c757d;
  font-style: italic;
}

.photo-description-input {
  width: 100%;
  padding: 0.5rem;
  border: 2px solid #007bff;
  border-radius: 4px;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
}

.photo-description-buttons {
  display: flex;
  gap: 5px;
  margin-top: 5px;
}

.photo-datetime {
  margin-bottom: 5px;
  font-size: 0.85rem;
  color: #6c757d;
  font-weight: 500;
}

.photo-location {
  margin-top: 5px;
}

.maps-link {
  display: inline-block;
  background: #f8f9fa;
  color: #dc3545;
  padding: 2px 6px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 16px;
  transition: background-color 0.2s ease;
  position: relative;
}

.maps-link:hover {
  background: #e9ecef;
  color: #c82333;
}

.maps-link::after {
  content: 'View Location';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  background: #333;
  color: white;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 10px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.maps-link:hover::after {
  opacity: 1;
}

.photo-description-buttons {
  margin-top: 0.25rem;
  display: flex;
  gap: 0.25rem;
  justify-content: flex-end;
}

.photo-description-buttons button {
  padding: 0.25rem 0.5rem;
  border: none;
  border-radius: 3px;
  background: #f8f9fa;
  color: #6c757d;
  cursor: pointer;
  font-size: 0.8rem;
  transition: background-color 0.2s ease;
}

.delete-photo-btn {
  padding: 0.25rem 0.5rem;
  border: none;
  border-radius: 3px;
  background: #f8f9fa;
  color: #6c757d;
  cursor: pointer;
  font-size: 0.8rem;
  transition: background-color 0.2s ease;
}

.photo-description-buttons button:first-child {
  background: #28a745;
  color: white;
}

.photo-description-buttons button:first-child:hover {
  background: #218838;
}

.photo-description-buttons button:last-child {
  background: #dc3545;
  color: white;
}

.photo-description-buttons button:last-child:hover {
  background: #c82333;
}

.maps-link { text-decoration: none; }

.photo-description {
    font-size: 0.8rem;
 }
  
.photo-description-input {
    font-size: 0.8rem;
}

/* Search Form */
.search-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  max-width: 600px;
}

.search-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.2s ease;
  background: var(--bg-primary);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.search-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px var(--shadow-medium);
}

.search-info {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .search-form {
    flex-direction: column;
  }
  
  .search-btn {
    width: 100%;
  }
}

/* ===== Login / Auth ===== */

/* Top bar with login button */
#top-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: 0 2px 6px var(--shadow-light);
}

#top-bar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

#user-info {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

#user-info strong {
  color: var(--primary-color);
}

.top-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.top-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px var(--shadow-medium);
}

#logout-btn {
  background: var(--danger-color);
}

#logout-btn:hover {
  background: #dc2626;
}

/* Modal overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(2px);
}

.modal-content {
  background: var(--bg-primary);
  border-radius: 16px;
  padding: 2rem;
  width: 90%;
  max-width: 380px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
}

.modal-content h2 {
  margin-top: 0;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
  font-size: 1.5rem;
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
}

.modal-close:hover {
  color: var(--text-primary);
  background: none;
  transform: none;
  box-shadow: none;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input[type="text"],
.form-group input[type="password"] {
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  background: var(--bg-primary);
  transition: all 0.2s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.login-error {
  background: #fef2f2;
  color: var(--danger-color);
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.modal-content button[type="submit"] {
  width: 100%;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-content button[type="submit"]:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px var(--shadow-medium);
}

.modal-content button[type="submit"]:disabled {
  background: var(--text-muted);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Standalone login page */
#login-only {
  max-width: 400px;
  margin: 10vh auto;
}

#login-only h1 {
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

#login-only p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.login-form .form-group input[type="text"],
.login-form .form-group input[type="password"] {
  width: 100%;
  box-sizing: border-box;
}

.login-form button[type="submit"] {
  width: 100%;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.login-form button[type="submit"]:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px var(--shadow-medium);
}

/* Login prompt on index page */
.login-prompt {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--bg-secondary);
  border: 2px dashed var(--border-color);
  border-radius: 12px;
  margin: 2rem 0;
}

.login-prompt p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
