body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: url("/static/bg.jpg") no-repeat center center fixed;
  background-size: cover;
  color: white;
  overflow-x: hidden;
}

.wrapper {
  width: 350px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: 15px;
  color: white;
  box-shadow: 0 0 25px rgba(0,0,0,0.8);
  margin: 50px auto;
}

.input-box {
  position: relative;
  margin: 20px 0;
}

.input-box input {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: none;
  outline: none;
}

.btn {
  width: 100%;
  padding: 10px;
  background: #1f1f1f;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 10px;
}

.btn:hover {
  background: #333;
}

a {
  color: #ccc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.remember-forgot {
  text-align: center;
  margin: 10px 0;
}

.error-box {
  background: #ffebeb;
  color: #c40000;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 6px;
  font-size: 14px;
  text-align: center;
}

/* --- UPDATED THUMBNAIL STYLES --- */
.thumb, .thumb-video { 
    width: 100%; 
    height: 160px; 
    object-fit: cover; 
    border-radius: 12px; 
    background: #111;
    display: block;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.thumb.loaded {
    opacity: 1;
}

@keyframes pulse {
    0% { background-color: #111; }
    50% { background-color: #222; }
    100% { background-color: #111; }
}

.video-thumb { 
    position: relative; 
    width: 100%; 
    height: 160px; 
    overflow: hidden; 
    border-radius: 12px; 
    background: black;
    animation: pulse 2s infinite; 
}