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

body {
  height: 100vh;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  background-color: #121212; /* smooth, deep charcoal black */
  color: #fff;
}

/* Flex Center Utility */
.centered {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Logo Section */
.logo {
  text-align: center;
  font-family: "Oswald", sans-serif;
  color: #ffffff;
}

.main-text {
  font-size: 55px;
  font-weight: bold;
  line-height: 1.2;
}

.sub-text {
  font-size: 26px;
  letter-spacing: 4px;
  margin-top: 5px;
}

.logo-img {
  padding-top: 100px;
}

/* Login Container */
.login-container {
  background-color: #1f1f1f;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  width: 100%;
  max-width: 400px;
  margin-top: 100px;
  text-align: center;
  color: #fff;
}

/* Form Header */
h2 {
  margin-bottom: 24px;
  font-size: 26px;
  color: #ffffff;
  font-weight: bold;
}

/* Inputs */
input[type="email"],
input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 12px 40px 12px 12px;
  margin-bottom: 20px;
  border: 1px solid #444;
  border-radius: 6px;
  background-color: #2a2a2a;
  color: #fff;
  font-size: 16px;
  transition: border-color 0.3s ease, background-color 0.2s ease;
}

input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus {
  border-color: #e41e08;
  background-color: #333;
  outline: none;
}

/* Eye Icon */
.password-container {
  position: relative;
}

.eye-icon {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 20px;
  color: #aaa;
  transition: color 0.2s ease;
}

.eye-icon:hover {
  color: #e41e08;
}

/* Submit Button */
button {
  width: 100%;
  padding: 12px;
  background-color: #e41e08;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #a11212;
}

/* Login Error */
#login-error {
  margin-top: -5px;
  margin-bottom: 15px;
  font-size: 17px;
  color: #ff4d4d;
}

/* Loader Overlay */
#login-loader {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(1px);
  z-index: 999;
}

/* Spinner */
.loader {
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-left-color: #e41e08;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin89345 1s linear infinite;
}

@keyframes spin89345 {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}
