body {
  font-family: 'Epilogue';font-size: 22px;

  background: rgba(255, 255, 255, 0.644);
  margin: 0;

  display: flex;
  flex-direction: column;
  align-items: center;
}


img {
  border-radius: 40px;
  margin-top: 50px;
}

.login-box {
  width: 90%;
  max-width: 400px;
  padding: 20px;
}

.login-box .user-box {
  position: relative;
}

.login-box .user-box input {
  width: 100%;
  padding: 10px 0;
  font-size: 16px;
  color: #4B5D8C;
  margin-bottom: 30px;
  border: 1px solid #4B5D8C;
  border-bottom: 1px solid #4B5D8C;
  outline: none;
  border-radius: 5px;
  background: transparent;
}
.login-box .user-box label {
  position: absolute;
  top:0px;
  left: 7px;
  padding: 10px 0;
  font-size: 12px;
  color: #4B5D8C;
  transition: .5s;
  font-family: 'Inter', sans-serif;
}

.login-box .user-box input:focus ~ label,
.login-box .user-box input:valid ~ label {
  top: -30px;
  left: 0;
  color: #4B5D8C;
  font-size: 12px;
  font-family: 'Inter', sans-serif;
}

.login-box form a {
  position: relative;
  display: inline-block;
  padding: 10px 20px;
  color: #4B5D8C;
  font-size: 16px;
  text-decoration: none;
  text-transform: uppercase;
  overflow: hidden;
  transition: .5s;
  margin-top: 40px;
  letter-spacing: 4px
}

.submit-btn {
    position: relative;
    z-index: 0;
    color: rgba(256,256,256,0.7);
    border: 0;
    border-radius: 15px;
    display: block;
    margin: 15px auto;
    padding: 15px 45px;
    width: 100%;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    opacity: 1;
    visibility: visible;
    transition: all .3s ease;

    &::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom, #77C3A4, #93A1C4);
        border-radius: 15px;
        z-index: -1;
        transition: opacity .3s ease;
    }

    &::after {
        content: '';
        position: absolute;
        inset: 0;
        background-color: rgba(122, 122, 122, 0.8);
        border-radius: 15px;
        z-index: -1;
        opacity: 0;
        transition: opacity .3s ease;
    }

    &:hover::before {
        opacity: 0;
    }

    &:hover::after {
        opacity: 0.1;
    }
}

.status {
    display: inline-block;
    margin-left: 15px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: bold;
    color: white;
}

.status.offline {
    background-color: #e74c3c;
}

.status.online {
    background-color: #2ecc71;
}

.actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  width: 90%;
  max-width: 400px;
  margin: 20px auto;
}

.action-btn {
  flex: 1;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  padding: 10px 0;

  border-radius: 6px;
  border: 1px solid transparent;

  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;

  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.refresh-btn {
  background-color: #f3f6fb;
  color: #0078d4;
  border-color: #d0d7e2;
}

.refresh-btn:hover {
  background-color: #e5f1fb;
  border-color: #0078d4;
}

.logout-btn {
  background-color: #fff5f5;
  color: #d13438;
  border-color: #f3c7c9;
}

.logout-btn:hover {
  background-color: #fde7e9;
  border-color: #d13438;
}

.material-symbols-outlined {
  font-size: 18px;
  font-variation-settings: 'wght' 500;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.hidden {
  display: none ! important;
}

.modal-card {
  background: white;
  padding: 30px;
  width: 320px;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  text-align: center;
  animation: fadeIn 0.3s ease;
}

.modal-card h3 {
  margin-top: 0;
  color: #ff3e3e;
}

.modal-card p {
  font-size: 14px;
  color: #555;
}

.modal-btn {
  margin-top: 15px;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  background: #2ecc71;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.modal-btn:hover {
  background: #27ae60;
  transform: scale(1.05);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  display: inline-block;
  margin-left: 10px;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
