* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-container {
  width: 100%;
  max-width: 400px;
  padding: 20px;
}

.login-form {
  background: white;
  padding: 40px 30px;
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.logo-container {
  text-align: center;
  margin-bottom: 30px;
}

.logo-container img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.form-group {
  margin-bottom: 20px;
}

.input-group {
  position: relative;
  display: flex;
  align-items: stretch;
}

.input-group-text {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-right: none;
  padding: 12px 15px;
  border-radius: 8px 0 0 8px;
  color: #6c757d;
  min-width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-control {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid #dee2e6;
  border-left: none;
  border-radius: 0;
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.password-toggle {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-left: none;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.password-toggle:hover {
  background: #e9ecef;
}

.input-group .form-control:last-child {
  border-radius: 0 8px 8px 0;
}

.input-group .form-control:not(:last-child) {
  border-radius: 0;
}

.btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #0056b3, #004085);
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.error-message {
  color: #dc3545;
  font-size: 14px;
  margin-top: 10px;
  text-align: center;
  min-height: 20px;
}

.spinner-border-sm {
  width: 1rem;
  height: 1rem;
  border-width: 0.15em;
}

.d-none {
  display: none !important;
}

@media (max-width: 480px) {
  .login-container {
    padding: 15px;
  }
  
  .login-form {
    padding: 30px 20px;
  }
  
  .logo-container img {
    width: 60px;
    height: 60px;
  }
}