:root {
  --primary-color: #165dff;
  --secondary-color: #0e42d2;
  --neutral-color: #f5f7fa;
  --dark-color: #1d2129;
  --gray-color: #86909c;
  --light-gray: #e5e6eb;
  --border-radius: 0.5rem;
  --box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
}

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

body {
  background-color: var(--neutral-color);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.login-container {
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
}

.login-card {
  background-color: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--box-shadow);
}

.card-header {
  text-align: center;
  margin-bottom: 1.2rem;
}

.card-header .icon-wrapper {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  width: 4rem;
  height: 4rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.card-header .icon-wrapper i {
  font-size: 1.5rem;
}

.card-header h1 {
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: bold;
  color: var(--dark-color);
}

.card-header p {
  color: var(--gray-color);
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.login-form ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.login-form li {
  position: relative;
  display: flex;
  gap: 0.5rem;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.login-form li[style*='display: block'],
.login-form li[style*='display:block'] {
  display: flex !important;
  animation: slideIn 0.3s ease;
}

.login-form li[style*='display: none'],
.login-form li[style*='display:none'] {
  display: none !important;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-form label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #4e5969;
  width: 15%;
  padding-top: 0.75rem;
  flex-shrink: 0;
}

.login-form input {
  flex-grow: 1;
  padding: 0.75rem;
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
}

.login-form input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.125rem rgba(22, 93, 255, 0.2);
}

.form_tips {
  position: absolute;
  top: 100%;
  left: 15%;
  font-size: 0.75rem;
  color: var(--gray-color);
  margin-top: 0.25rem;
  padding-left: 0.5rem;
}

.login-button {
  background-color: var(--primary-color);
  color: white;
  font-weight: 500;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.login-button:hover {
  background-color: var(--secondary-color);
  transform: translateY(-0.25rem);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.login-button:active {
  transform: translateY(0);
}

.login-button .loading-spinner {
  animation: spin 1s linear infinite;
}

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

.copyright {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: #c9cdd4;
}

.form-links {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  padding: 0 0.5rem;
}

.form-link {
  color: var(--primary-color);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.form-link:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.setOptions {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 0 0.5rem;
}

.setOptions i {
  flex: 1;
  text-align: center;
  padding: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--gray-color);
  font-style: normal;
  font-size: 0.875rem;
}

.setOptions i.hovers {
  background-color: var(--primary-color);
  color: white;
}
