* { box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }

body {
  margin: 0;
  min-height: 100vh;
  transition: 0.4s;
  overflow: hidden;
}
/*LOGO/COMPANY*/
.company-logo {
  display: flex;
  align-items: center;
  justify-content: start;
  font-style: italic;
  height: 50px;
}
h1 {
  font-family: 'Times New Roman', Times, serif;
  color: #a70584;
  margin-left: -5px;
  font-size: 25px;
}

.logo-size {
  width: 50px;
  height: 50px;
}


/* 🌑 DARK */
body.dark {
  background: radial-gradient(circle at top, #111, #000);
  color: #fff;
}

/* ☀️ LIGHT */
body.light {
  background: linear-gradient(#7c8bcd, #e9ecf5);
  color: #111;
}

/* 🌗 TOGGLE */
.mode-toggle {
  position: fixed;
  top: 5px;
  right: 1px;
  font-size: 26px;
  cursor: pointer;
  z-index: 10;
}

/* ⭐ STARS */
#stars {
  position: fixed;
  inset: 0;
  z-index: 0;
}

/* 🔐 LOGIN */
.login-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  z-index: 1;
  position: relative;
}

.login-box {
  width: 340px;
  padding: 20px;
  padding-top: 0;
  border-radius: 20px;
  backdrop-filter: blur(18px);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  font-style: italic;
  text-align: center;
}

h2 {
  text-align: center;
  margin-bottom: 50px;
  font-family: 'monospace';
}

body.light .login-box {
  background: rgba(186, 181, 181, 0.7);
}

/* INPUT */
.input-box {
  position: relative;
  margin-top: 35px;
}

.input-box input {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  outline: none;
  background: rgba(255,255,255,0.15);
  color: inherit;
}

.input-box label {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.6;
  pointer-events: none;
  transition: 0.3s;
}

.input-box input:focus + label,
.input-box input:valid + label {
  top: -8px;
  font-size: 12px;
  opacity: 1;
  color: #00e5ff;
}

.toggle-pass {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}

/*REMEBER*/
.remember-me {
  margin-top: 30px;
  text-align: left;
  font-size: x-small;
}
.remember-me input {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
}

/* BUTTON */
button {
  width: 100%;
  height: 35px;
  margin-top: 20px;
  padding: 5px;
  align-self: center;
  border-radius: 15px;
  border: none;
  background: linear-gradient(135deg,#219abc,#60ffca);
  font-size: 16px;
  cursor: pointer;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0,229,255,0.4);
}

button.loading {
  pointer-events: none;
  opacity: 0.7;
}

/* ERROR */
.error {
  color: #ff5d5d;
  text-align: center;
  margin-top: 10px;
}
/*FOOTER*/
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 12px 0;
  text-align: center;
  font-size: 17px;
  color: #3c0343;
  background: transparent;
  z-index: 10;
  font-weight: bolder;
  font-style: oblique;
}

/*LOADER*/
button {
  position: relative;
}

.loader {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,.3);
  border-top: 2px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: none;
}

button.loading .loader {
  display: inline-block;
}

button.loading .btn-text {
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/*ERROR SHAKE*/
.login-box.shake {
  animation: shake .4s;
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  50% { transform: translateX(6px); }
  75% { transform: translateX(-6px); }
  100% { transform: translateX(0); }
}

.error {
  color: #ff5b5b;
  margin-top: 8px;
}


