/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* BODY */
body {
  min-height: 100vh;
  background: url('../images/bg.jpg') no-repeat center center/cover;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding-top: 130px; /* header + news bar */
}

/* DARK OVERLAY */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.45);
  z-index: -1;
}

/* 🔷 TOP BLURRED HEADER */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;

  display: flex;
  align-items: center;

  padding: 0 20px;

  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);

  border-bottom: 1px solid rgba(255,255,255,0.2);
  z-index: 1000;
}

/* LOGO */
.logo {
  height: 65px;
}

/* TITLE WRAPPER */
.university-title {
  flex: 1;
  text-align: center;
  color: #ffffff;
}

/* MAIN TITLE */
.uni-name {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* SUBTITLE */
.uni-sub {
  font-size: 13px;
  opacity: 0.85;
  margin-top: 2px;
}

/* 🔔 NEWS BAR */
.news-bar {
  position: fixed;
  top: 90px;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  border-bottom: 1px solid rgba(255,255,255,0.2);
  z-index: 999;
}

/* WRAPPER */
.news-wrapper {
  width: 100%;
  overflow: hidden;
}

/* SCROLL TEXT */
.news-content {
  display: inline-block;
  white-space: nowrap;
  color: #ff4d4d;
  font-weight: 600;
  padding: 8px 0;

  animation: scroll-left 25s linear infinite;
}

/* HOVER PAUSE */
.news-content:hover {
  animation-play-state: paused;
}

/* ANIMATION */
@keyframes scroll-left {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(-100%);
  }
}

/* CONTAINER */
.container {
  width: 100%;
  max-width: 400px;
}

/* HEADER */
.header {
  text-align: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 26px;
  margin-bottom: 20px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}

/* FORM CARD */
form {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.2);
}

/* INPUT GROUP */
.input-group {
  margin-bottom: 15px;
  position: relative;
}

.input-group label {
  color: #ffffff;
  font-size: 14px;
  margin-bottom: 5px;
  display: block;
}

.input-group input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: none;
  outline: none;
}

/* BUTTON */
.btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #5F9EA0, #2c7a7b);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 16px;
  cursor: pointer;
}

.btn:hover {
  transform: scale(1.05);
}

/* ERROR */
.error {
  background: rgba(255, 0, 0, 0.2);
  color: white;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}

/* SUCCESS */
.success {
  background: rgba(0, 255, 0, 0.2);
  color: white;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}

/* LINKS */
a {
  color: #ffffff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* PASSWORD ICON */
.input-group span {
  position: absolute;
  right: 10px;
  top: 35px;
  cursor: pointer;
}

/* ALIGN RIGHT */
.link-right {
  text-align: right;
  margin-bottom: 10px;
}

/* CENTER TEXT */
.text-center {
  text-align: center;
  margin-top: 10px;
}

/* FOOTER */
.footer {
  position: absolute;
  bottom: 10px;
  width: 100%;
  text-align: center;
  color: #ffffff;
  font-size: 13px;
  opacity: 0.9;
}

/* PORTAL TITLE */
.portal-title {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.portal-sub {
  font-size: 16px;
  color: #ffffff;
  text-align: center;
  margin-top: 3px;
  letter-spacing: 2px;
}

/* RESPONSIVE */
@media (max-width: 500px) {
  form {
    padding: 20px;
  }
}