body {
  margin: 0;
  padding: 0;
  background: linear-gradient(145deg, #0d0d0d, #1a1a1a);
  color: #ffffff;
  font-family: 'Tajawal', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.main-wrapper {
  max-width: 700px;
  width: 90%;
  text-align: center;
  padding: 40px 20px;
  position: relative;
}

.main-wrapper.small {
  max-width: 400px;
}

.logo {
  width: 100px;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.1);
}

.title {
  font-size: 42px;
  margin: 0 0 10px 0
}

.subtitle {
  font-size: 18px;
  color: #bbbbbb;
  margin-bottom: 50px;
}

.actions {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.btn {
  flex: 1;
  padding: 18px 0;
  font-size: 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border: none;
}

.btn:focus,
button:focus {
  outline: none;
}

.btn-primary {
  background-color: #1e88e5;
  color: #fff;
}

.btn-primary:hover {
  background-color: #1565c0;
}

.btn-secondary {
  background-color: #d32f2f;
  color: #fff;
}

.btn-secondary:hover {
  background-color: #b71c1c;
}

.full-width {
  width: 100%;
}

.auth-buttons {
  margin-bottom: 60px;
}

.auth-link {
  display: inline-block;
  font-size: 16px;
  color: #999;
  text-decoration: none;
  padding: 10px 20px;
  border: 1px solid #333;
  border-radius: 8px;
  transition: 0.3s;
}

.auth-link:hover {
  color: #fff;
  border-color: #555;
  background-color: #1a1a1a;
}

.footer {
  font-size: 14px;
  color: #777;
  margin-top: 40px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 30px 0;
}

.auth-form input {
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #444;
  background-color: #1a1a1a;
  color: #fff;
  font-size: 15px;
}

.auth-form input::placeholder {
  color: #888;
}

input,
button,
.auth-form input,
.auth-form button,
.btn {
  font-family: 'Tajawal', sans-serif;
}

.auth-form textarea {
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #444;
  background-color: #1a1a1a;
  color: #fff;
  font-size: 15px;
  resize: vertical;
  font-family: 'Tajawal', sans-serif;
}

.auth-form textarea::placeholder {
  color: #888;
}

.auth-form select {
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #444;
  background-color: #1a1a1a;
  color: #fff;
  font-size: 15px;
  font-family: 'Tajawal', sans-serif;
}

.auth-form textarea {
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #444;
  background-color: #1a1a1a;
  color: #fff;
  font-size: 15px;
  resize: vertical;
  font-family: 'Tajawal', sans-serif;
}

.auth-form textarea::placeholder,
.auth-form select::placeholder {
  color: #888;
}

.type-note {
  margin-top: 0px;
  background-color: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 12px;
  color: #ccc;
  font-size: 14px;
  line-height: 1.8;
  text-align: right;
}

.invalid {
  border: 1px solid #e53935 !important;
}

.error-message {
  color: #e57373;
  font-size: 13px;
  text-align: right;
  margin: 4px 0 0 0;
  display: none;
}

.case-box {
  background-color: #1a1a1a;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 30px;
  border: 1px solid #333;
  font-size: 18px;
  line-height: 1.6;
}

.case-reason {
  margin-top: 15px;
  font-size: 15px;
  color: #ccc;
}

.vote-buttons {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.vote-buttons button {
  flex: 1;
  padding: 15px 0;
  font-size: 18px;
  border-radius: 10px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

.vote-buttons .yes {
  background-color: #4caf50;
  color: #fff;
}

.vote-buttons .yes:hover {
  background-color: #388e3c;
}

.vote-buttons .no {
  background-color: #f44336;
  color: #fff;
}

.vote-buttons .no:hover {
  background-color: #d32f2f;
}

.result-box {
  background-color: #111;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  color: #ccc;
  border: 1px solid #333;
}

#glow-left,
#glow-right {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 50%;
  pointer-events: none;
  z-index: -1;
  transition: background 0.3s ease;
}

#glow-left,
#glow-right {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 50%;
  z-index: -1;
  pointer-events: none;
  transition: opacity 0.3s ease;
  opacity: 0;
  background: transparent;
}
#glow-left {
  left: 0;
  background: radial-gradient(
    ellipse 125% 125vh at left center,
    rgba(244, 67, 54, 0.15),
    transparent 80%
  );
}

#glow-right {
  right: 0;
  background: radial-gradient(
    ellipse 125% 125vh at right center,
    rgba(76, 175, 80, 0.15),
    transparent 80%
  );
}


.case-text {
  font-size: 20px;
  text-align: center;
  margin-bottom: 15px;
}

.case-reason {
  text-align: center;
  font-size: 14px;
  color: #aaa;
  margin-bottom: 30px;
}

#spotlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(0,255,0,0.2) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.vote-bar-container {
  display: flex;
  width: 100%;
  height: 50px;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 15px;
  margin-bottom: 30px;
  box-shadow: 0 0 8px rgba(0,0,0,0.4);
}

.vote-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
  font-size: 16px;
  height: 100%;
  line-height: 50px;    
  white-space: nowrap;
  overflow: hidden;     
}

.vote-bar.green {
  background-color: #4caf50;
}

.vote-bar.red {
  background-color: #f44336;
}

.next-button {
  background-color: #424242;  
  color: #fff;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.3s ease;
  margin-top: 15px;
  width: fit-content;
  margin-inline: auto; 
}

.next-button:hover {
  background-color: #333;
}

#done-message {
  margin-top: 40px;
  color: #aaa;
  text-align: center;
  margin-bottom: 20px; 
}

.result-box {
  margin-bottom: 50px;
}

.input-wrapper {
  position: relative;
  margin-bottom: 15px;
}

.input-wrapper input {
  width: 100%;
  padding: 12px 40px 12px 12px;
  border-radius: 6px;
  border: 1px solid #444;
  background-color: #1a1a1a;
  color: #fff;
  font-size: 15px;
}

.toggle-password {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #ccc;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
  opacity: 0.5;
}
.toggle-password:hover {
  opacity: 1;
}

