:root {
  --primary-color: #3393ff;
  --primary-hover: #334fff;
  --border-color: #ecedec;
  --border-focus: #2d79f3;
  --text-color: #151717;
  --text-muted: #6c757d;
  --bg-color: #f5f5f5;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  background: var(--white);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 20px;
}

.login-container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.logo-container {
  text-align: center;
  margin-bottom: 30px;
}

.logo-container img {
  height: 60px;
  margin: 0 10px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.form-card {
  background: var(--white);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-header {
  text-align: center;
  margin-bottom: 30px;
}

.form-title {
  color: var(--text-color);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.2;
}

.form-subtitle {
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 400;
  margin: 0;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  color: var(--text-color);
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 14px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  background: var(--white);
  transition: all 0.3s ease;
  height: 50px;
}

.input-wrapper:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(45, 121, 243, 0.1);
}

.input-icon {
  padding: 0 12px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.form-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0 12px;
  font-size: 15px;
  background: transparent;
  height: 100%;
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-select {
  flex: 1;
  border: none;
  outline: none;
  padding: 0 12px;
  font-size: 15px;
  background: transparent;
  height: 100%;
  cursor: pointer;
}

.password-toggle {
  padding: 0 12px;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.password-toggle:hover {
  color: var(--primary-color);
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0;
  flex-wrap: wrap;
  gap: 10px;
}

.checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-wrapper input[type="checkbox"] {
  margin: 0;
}

.checkbox-label {
  font-size: 14px;
  color: var(--text-color);
  margin: 0;
}

.forgot-password {
  font-size: 14px;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.forgot-password:hover {
  text-decoration: underline;
}

.submit-btn {
  width: 100%;
  height: 52px;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-hover) 100%
  );
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(51, 147, 255, 0.3);
}

.submit-btn:active {
  transform: translateY(0);
}

.form-footer {
  text-align: center;
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    padding: 15px;
  }

  .form-card {
    padding: 30px 25px;
  }

  .form-title {
    font-size: 20px;
  }

  .form-subtitle {
    font-size: 14px;
  }

  .logo-container img {
    height: 50px;
  }

  .form-options {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .form-card {
    padding: 25px 20px;
  }

  .form-title {
    font-size: 18px;
  }

  .input-wrapper {
    height: 45px;
  }

  .submit-btn {
    height: 48px;
    font-size: 15px;
  }
}

@media (max-width: 320px) {
  .logo-container img {
    height: 40px;
    margin: 0 5px;
  }

  .form-card {
    padding: 20px 15px;
  }
}

/* Animation for form load */
.form-card {
  animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Focus animations */
.input-wrapper {
  position: relative;
  overflow: hidden;
}

.input-wrapper::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.input-wrapper:focus-within::before {
  width: 100%;
}
.alert {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 16px;
    font-size: 14px;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}