/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'Segoe UI', sans-serif;
}

/* Body wrapper for full centering */
body {
  background: linear-gradient(to right, #2ecc71, #27ae60);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.3s ease, color 0.3s ease;
  position: relative;
}

/* Dark Mode */
body.dark {
  background: #121212;
  color: #f0f0f0;
}

body.dark .login-box {
  background-color: #1e1e1e;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
}

body.dark input {
  background: #2c2c2c;
  color: white;
  border: 1px solid #444;
}

body.dark .login-btn {
  background: #27ae60;
}

body.dark a {
  color: #90caf9;
}

/* Theme Toggle */
.theme-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 16px;
  user-select: none;
  z-index: 10;
}

/* Login Container */
.login-container {
  width: 100%;
  max-width: 400px;
  padding: 20px;
}

/* Login Box (Centered Block) */
.login-box {
  background: #ffffff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  animation: fadeIn 0.5s ease;
}

h1 {
  color: #2ecc71;
  margin-bottom: 10px;
  font-size: 28px;
}

.subtitle {
  font-size: 14px;
  color: #555;
  margin-bottom: 25px;
}

input {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 15px;
  background: #f9f9f9;
}

.login-btn {
  width: 100%;
  padding: 12px;
  background-color: #2ecc71;
  border: none;
  color: white;
  font-size: 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.login-btn:hover {
  background-color: #27ae60;
}

.demo-info {
  margin-top: 10px;
  font-size: 13px;
  color: #777;
}

.links {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.links a {
  text-decoration: none;
  color: #3498db;
  transition: color 0.2s;
}

.links a:hover {
  color: #2980b9;
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile Fix */
@media (max-height: 600px) {
  body {
    align-items: flex-start;
    padding-top: 40px;
  }
}
.links {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.links a {
  text-decoration: none;
  color: #3498db;
  transition: color 0.2s;
}

.links a:hover {
  color: #2980b9;
}
.guest-section {
  margin-top: 25px;
  text-align: center;
  font-size: 14px;
  color: #555;
}

.guest-section p {
  margin-bottom: 10px;
  font-weight: 600;
}

.guest-btn {
  background: transparent;
  border: 2px solid #2ecc71;
  color: #2ecc71;
  padding: 10px 25px;
  font-size: 15px;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.guest-btn:hover {
  background-color: #2ecc71;
  color: white;
}
