body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  /* height: 100vh; */
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, var(--black) 0%, var(--dark-gray) 100%);
  position: relative;
  overflow: hidden;
  line-height: 1.4;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Remove default outline from buttons (respects border-radius) */
button,
a,
.btn,
[role="button"] {
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

button:focus,
a:focus,
.btn:focus,
[role="button"]:focus {
  outline: none;
}

button:focus-visible,
a:focus-visible,
.btn:focus-visible,
[role="button"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.3);
}

/* Allow text selection for form inputs */
body input,
body textarea,
body [contenteditable="true"],
body [contenteditable] {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

body::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: linear-gradient(
    135deg,
    rgba(220, 38, 38, 0.1) 0%,
    rgba(153, 27, 27, 0.1) 100%
  );
  z-index: 0;
}

.login-container {
  background: var(--white);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  /* width: 100%; */
  max-width: 450px;
  position: relative;
  z-index: 1;
}

.login-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.login-logo {
  font-size: 5rem;
  font-weight: bold;
  background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
}

.login-logo-image {
  width: 128px;
  height: 128px;
}

.login-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 0.5rem;
}

.login-subtitle {
  color: var(--gray);
  font-size: 0.95rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.form-group label {
  font-weight: 600;
  color: var(--black);
  font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="password"] {
  padding: 1rem;
  border: 2px solid var(--light-gray);
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.button-group {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  width: 100%;
}

.home-btn {
  flex: 0 0 33.333%;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, var(--black), var(--dark-gray));
  color: var(--white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  text-align: center;
  display: inline-block;
  box-sizing: border-box;
}

.home-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.home-btn:active {
  transform: translateY(-1px);
}

.login-btn {
  flex: 1;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, var(--primary-red), var(--light-red));
  color: var(--white);
  box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
}

.login-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(220, 38, 38, 0.4);
}

.login-btn:active {
  transform: translateY(-1px);
}

.error {
  color: var(--primary-red);
  background: rgba(220, 38, 38, 0.1);
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  text-align: center;
  font-size: 0.95rem;
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.logout {
  color: #388e3c;
  background: rgba(56, 142, 60, 0.1);
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  text-align: center;
  font-size: 0.95rem;
  border: 1px solid rgba(56, 142, 60, 0.2);
}

@media (max-width: 768px) {
  body {
    /* padding: 1rem; */
    align-items: center;
    justify-content: center;
  }

  .login-container {
    padding: 1.5rem;
    margin: 0;
    /* width: 100%; */
    max-width: 100%;
    margin-top: -5rem;
  }

  .login-logo {
    font-size: 2.5rem;
  }
}
