@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");

:root {
  --bg: #121212;
  --surface: #1e1e1e;
  --primary: #ededed;
  --secondary: #a0a0a0;
  --primary-btn: #dc2626; /* neutral red */
  --primary-hover: #a41f1f; /* darker red for hover */
  --secondary-btn: #f87171; /* soft accent */
  --success: #22c55e;
  --warning: #facc15;
  --error: #f43f5e;
  --info: #3b82f6;
  --disabled: #5a5a5a;
  --border: #2a2a2a;
}

* {
  font-family: "Inter", sans-serif;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg);
  color: var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.title {
  color: var(--primary-btn);
  font-weight: 900;
  font-size: 80px;
  display: inline-block;
  position: relative;
  top: -150px;
}

.title::after {
  content: "";
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-btn);
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}

.title:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.login {
  width: 400px;
  max-width: 92vw;
  height: auto;
  border-radius: 20px;
  background-color: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
  padding: 30px 40px;
  margin-top: -100px;
  border: 2px solid var(--border);
}

/* Responsive adjustments */
@media (max-width: 700px) {
  .title {
    font-size: 40px;
    top: -80px;
  }
  .login {
    width: 92vw;
    margin-top: -40px;
    padding: 20px;
  }
  .login .login-text {
    font-size: 22px;
  }
  .login .username,
  .login .password,
  .login .login-btn {
    width: 100%;
  }
}

.login .login-text {
  font-size: 35px;
}

.login .fields {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 10px;
}

.login .username,
.login .password,
.login .login-btn {
  width: 280px;
  height: 40px;
  padding: 10px;
  border-radius: 10px;
  outline: none;
  border: none;
}

.login .login-btn {
  background: black;
  color: white;
  cursor: pointer;
}

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 90px;
  background-color: var(--surface);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
}
