* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
  min-height: 100vh;
  padding: 20px;
}

.container {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 20px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 15px;
}

h1 {
  color: white;
  font-size: 32px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  margin: 0;
}

.login-card {
  background: white;
  border-radius: 12px;
  padding: 48px 32px;
  text-align: center;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  max-width: 400px;
  margin: 100px auto;
}

.login-card h1 {
  color: #1f2937;
  margin-bottom: 16px;
  text-shadow: none;
}

.login-card p {
  color: #6b7280;
  margin-bottom: 32px;
  line-height: 1.6;
}

.card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.card.success {
  background: #f0fdf4;
  border-left: 4px solid #22c55e;
}

.card.help {
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
}

.card h2 {
  color: #1f2937;
  margin-bottom: 16px;
  font-size: 20px;
}

.card h3 {
  color: #92400e;
  margin-bottom: 12px;
  font-size: 18px;
}

.card p {
  color: #4b5563;
  margin-bottom: 8px;
  line-height: 1.6;
}

.card p strong {
  color: #1f2937;
}

.card span {
  font-weight: 600;
  color: #3b82f6;
  font-family: 'Courier New', monospace;
}

.info-text {
  font-size: 14px;
  color: #6b7280 !important;
  margin-top: 12px;
  font-style: italic;
}

.card ol {
  margin-left: 20px;
  color: #92400e;
}

.card ol li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.card code {
  background: #fef3c7;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: #92400e;
}

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

.button {
  display: inline-block;
  padding: 14px 28px;
  background: #3b82f6;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.button:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.button.secondary {
  background: white;
  color: #3b82f6;
  border: 2px solid #3b82f6;
}

.button.secondary:hover {
  background: #eff6ff;
}

@media (max-width: 600px) {
  .container {
    padding: 20px 10px;
  }
  
  .header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  h1 {
    font-size: 24px;
  }
  
  .card {
    padding: 20px;
  }
  
  .actions {
    flex-direction: column;
  }
  
  .button {
    width: 100%;
    text-align: center;
  }
  
  .login-card {
    margin: 50px auto;
    padding: 32px 24px;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Login Page Styles */
.login-card {
  animation: fadeInUp 0.6s ease-out;
}

.login-card h1 {
  font-size: 36px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-card .subtitle {
  color: #9ca3af;
  font-size: 14px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.login-card .description {
  color: #6b7280;
  margin-bottom: 32px;
  line-height: 1.6;
  font-size: 15px;
}

.button-wrapper {
  position: relative;
}

#login-btn {
  width: 100%;
  padding: 16px 32px;
  font-size: 17px;
  position: relative;
  overflow: hidden;
}

#login-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

#login-btn:hover::before {
  width: 300px;
  height: 300px;
}

.login-footer {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
  color: #9ca3af;
  font-size: 13px;
}

.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #10b981;
  font-size: 13px;
  margin-top: 16px;
}

/* Dashboard & Index Page Styles */
.header {
  animation: fadeInDown 0.6s ease-out;
}

.card, .actions {
  animation: fadeInUp 0.6s ease-out;
}

.card {
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.header h1 {
  display: flex;
  align-items: center;
  gap: 12px;
}

#loading-card {
  text-align: center;
  padding: 40px;
}

#loading-card p {
  color: #6b7280;
  font-size: 16px;
}

#loading-card::after {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #e5e7eb;
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-left: 10px;
  vertical-align: middle;
}

#user-card {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-left: 4px solid #3b82f6;
}

#user-card h2 {
  color: #1e40af;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card.success {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-left: 4px solid #22c55e;
}

.card.success h2 {
  color: #16a34a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.button, .actions a {
  position: relative;
  overflow: hidden;
}

.button::before, .actions a::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.button:hover::before, .actions a:hover::before {
  width: 300px;
  height: 300px;
}

.button span, .actions a span {
  position: relative;
  z-index: 1;
}

/* Footer Styles */
.footer {
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer p {
  margin: 8px 0;
}

.footer .version {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  font-family: 'Courier New', monospace;
}